npm.io
0.5.3 • Published 3 years ago

@types/marshal

Licence
MIT
Version
0.5.3
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.5K

Installation

npm install --save @types/marshal

Summary

This package contains type definitions for marshal (https://github.com/clayzermk1/node-marshal).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/marshal.

index.d.ts

/// <reference types="node" />

declare class Marshal {
    parsed?: unknown;

    constructor(buffer: Buffer);
    constructor(buffer: string, encoding?: BufferEncoding);

    load(buffer: Buffer): this;
    load(buffer: string, encoding?: BufferEncoding): this;

    toString(encoding?: BufferEncoding): string;
    toJSON(): unknown;
}

export = Marshal;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0939 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Jamie Magee.