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
/// <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
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/long, @types/node
Credits
These definitions were written by Florian Keller.