1.4.33 • Published 6 months ago

@types/power-assert-formatter v1.4.33

Weekly downloads
28,895
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/power-assert-formatter

Summary

This package contains type definitions for power-assert-formatter (https://github.com/twada/power-assert-formatter).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/power-assert-formatter.

index.d.ts

// Type definitions for power-assert-formatter 1.4.1
// Project: https://github.com/twada/power-assert-formatter
// Definitions by: vvakame <https://github.com/vvakame>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare function powerAssertFormatter(options?:powerAssertFormatter.Options):powerAssertFormatter.Formatter;

declare namespace powerAssertFormatter {
    export interface Options {
        lineDiffThreshold?: number | undefined;
        maxDepth?: number | undefined;
        outputOffset?: number | undefined;
        anonymous?: string | undefined;
        circular?: string | undefined;
        lineSeparator?: string | undefined;
        ambiguousEastAsianCharWidth?: number | undefined;
        widthOf?: Function | undefined;
        stringify?: Function | undefined;
        diff?: Function | undefined;
        writerClass?: {new (): any;} | undefined;
        renderers?: any[] | undefined; // { string | Function }[]
    }

    export interface Formatter {
        (powerAssertContext:any): string;
    }

    export function defaultOptions():Options;
}

export = powerAssertFormatter;
export as namespace powerAssertFormatter;

Additional Details

  • Last updated: Wed, 07 Jul 2021 17:02:35 GMT
  • Dependencies: none
  • Global values: powerAssertFormatter

Credits

These definitions were written by vvakame.

1.4.31

8 months ago

1.4.33

6 months ago

1.4.32

7 months ago

1.4.30

3 years ago

1.4.29

4 years ago

1.4.28

8 years ago

0.0.27

8 years ago

0.0.26

8 years ago

0.0.25-alpha

8 years ago

0.0.24-alpha

8 years ago

0.0.23-alpha

8 years ago

0.0.22-alpha

8 years ago

0.0.21-alpha

8 years ago

0.0.20-alpha

8 years ago

0.0.19-alpha

8 years ago

0.0.14-alpha

8 years ago

0.0.13-alpha

8 years ago