3.5.4 • Published 6 months ago

@types/purdy v3.5.4

Weekly downloads
592
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/purdy

Summary

This package contains type definitions for purdy (https://github.com/danielb2/purdy.js).

Details

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

index.d.ts

// Type definitions for purdy 3.5
// Project: https://github.com/danielb2/purdy.js
// Definitions by: YellowKirby <https://github.com/YellowKirby>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2

declare function Purdy(obj: object, options: Purdy.Options): void;

declare namespace Purdy {
    interface Instance {
        (obj: object, options: Options): void;
        print: (...args: any[]) => void;
        stringify: (...args: any[]) => string;
    }

    interface Options {
        depth?: number|null | undefined;
        plain?: boolean | undefined;
        json?: boolean | undefined;
        path?: boolean | undefined;
        proto?: boolean | undefined;
        indent?: number | undefined;
        align?: 'left'|'right' | undefined;
        arrayIndex?: boolean | undefined;
        pathPrefix?: string | undefined;
    }

    function purdy(options: Options): Instance;
    function stringify(obj: object, options: Options): string;
}

export = Purdy;

Additional Details

  • Last updated: Thu, 08 Jul 2021 20:19:59 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by YellowKirby.

3.5.3

7 months ago

3.5.2

8 months ago

3.5.4

6 months ago

3.5.1

3 years ago

3.5.0

5 years ago