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

0.5.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/marshal

Weekly Downloads

1,653

Version

0.5.3

License

MIT

Unpacked Size

3.32 kB

Total Files

5

Last publish

Collaborators

  • types