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

1.0.4 • 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

/// <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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/python-struct

Weekly Downloads

2,633

Version

1.0.4

License

MIT

Unpacked Size

3.97 kB

Total Files

5

Last publish

Collaborators

  • types