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 09:09:39 GMT
- Dependencies: @types/node
Credits
These definitions were written by Jamie Magee.