Nitrogen Pumpkin Mulch

    @types/python-struct
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    Installation

    npm install --save @types/python-struct

    Summary

    This package contains type definitions for python-struct (https://github.com/danielgindi/node-python-struct).

    Details

    Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/python-struct.

    index.d.ts

    // Type definitions for python-struct 1.0
    // Project: https://github.com/danielgindi/node-python-struct
    // Definitions by: Florian Keller <https://github.com/ffflorian>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    
    /// <reference types="node" />
    
    import * as Long from 'long';
    
    export type DataType = number | Long | string | boolean;
    
    export function pack(format: string, data: DataType[]): Buffer;
    export function pack(format: string, ...data: DataType[]): Buffer;
    export function sizeOf(format: string): number;
    export function unpack(
      format: string,
      data: Buffer,
      checkBounds?: boolean,
    ): DataType[];
    export function unpackFrom(
      format: string,
      data: Buffer,
      checkBounds: boolean | undefined,
      position: number,
    ): DataType;

    Additional Details

    Credits

    These definitions were written by Florian Keller.

    Keywords

    none

    Install

    npm i @types/python-struct

    DownloadsWeekly Downloads

    1,019

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.44 kB

    Total Files

    5

    Last publish

    Collaborators

    • types