npm.io
1.1.5 • Published 2 years ago

@types/tableify

Licence
MIT
Version
1.1.5
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/tableify

Summary

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

Details

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

index.d.ts

export = tableify;

declare function tableify<T extends Record<string, any>>(
    obj: T | readonly T[],
    columns?: ReadonlyArray<keyof T> | false,
    parents?: any[],
): string;
declare function tableify(obj: any): string;
declare namespace tableify {
    interface Config {
        classes?: boolean | undefined;
        classPrefix?: string | undefined;
    }
    function defaults(config: Config): {
        <T extends Record<string, any>>(
            obj: T | readonly T[],
            columns?: ReadonlyArray<keyof T> | false,
            parents?: any[],
        ): string;
        (obj: any): string;
    };
}

Additional Details

  • Last updated: Mon, 20 Nov 2023 2324 GMT
  • Dependencies: none

Credits

These definitions were written by Emily Marigold Klassen.