@types/flat
TypeScript definitions for flat
Last updated 6 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/flat 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/flat

Summary

This package contains type definitions for flat (https://github.com/hughsk/flat).

Details

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

index.d.ts

// Type definitions for flat 5.0.0
// Project: https://github.com/hughsk/flat
// Definitions by:  Ilya Mochalov <https://github.com/chrootsu>
//                  Oz Weiss <https://github.com/thewizarodofoz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare var flatten: FlatTypes.Flatten;

export = flatten;

declare namespace FlatTypes {
    interface FlattenOptions {
        delimiter?: string | undefined;
        safe?: boolean | undefined;
        maxDepth?: number | undefined;
        transformKey?: ((key: string) => string) | undefined;
    }

    interface Flatten {
        <TTarget, TResult>(
            target: TTarget,
            options?: FlattenOptions,
        ): TResult;

        flatten: Flatten;
        unflatten: Unflatten;
    }

    interface UnflattenOptions {
        delimiter?: string | undefined;
        object?: boolean | undefined;
        overwrite?: boolean | undefined;
        transformKey?: ((key: string) => string) | undefined;
    }

    interface Unflatten {
        <TTarget, TResult>(
            target: TTarget,
            options?: UnflattenOptions,
        ): TResult;
    }
}

Additional Details

  • Last updated: Thu, 14 Sep 2023 15:26:41 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Ilya Mochalov, and Oz Weiss.

Current Tags

  • 5.0.3                                ...           latest (3 years ago)
  • 0.0.28                                ...           ts2.0 (10 years ago)
  • 0.0.28                                ...           ts2.1 (10 years ago)
  • 0.0.28                                ...           ts2.2 (10 years ago)
  • 0.0.28                                ...           ts2.3 (10 years ago)
  • 0.0.28                                ...           ts2.4 (10 years ago)
  • 0.0.28                                ...           ts2.5 (10 years ago)
  • 0.0.28                                ...           ts2.6 (10 years ago)
  • 0.0.28                                ...           ts2.7 (10 years ago)
  • 5.0.0                                ...           ts2.8 (6 years ago)
  • 5.0.0                                ...           ts2.9 (6 years ago)
  • 5.0.1                                ...           ts3.0 (6 years ago)
  • 5.0.1                                ...           ts3.1 (6 years ago)
  • 5.0.1                                ...           ts3.2 (6 years ago)
  • 5.0.1                                ...           ts3.3 (6 years ago)
  • 5.0.1                                ...           ts3.4 (6 years ago)
  • 5.0.1                                ...           ts3.5 (6 years ago)
  • 5.0.2                                ...           ts3.6 (5 years ago)
  • 5.0.2                                ...           ts3.7 (5 years ago)
  • 5.0.2                                ...           ts3.8 (5 years ago)
  • 5.0.2                                ...           ts3.9 (5 years ago)
  • 5.0.2                                ...           ts4.0 (5 years ago)
  • 5.0.2                                ...           ts4.1 (5 years ago)
  • 5.0.2                                ...           ts4.2 (5 years ago)
  • 5.0.2                                ...           ts4.3 (5 years ago)
  • 5.0.2                                ...           ts4.4 (5 years ago)
  • 5.0.3                                ...           ts4.5 (3 years ago)
  • 5.0.3                                ...           ts4.6 (3 years ago)
  • 5.0.3                                ...           ts4.7 (3 years ago)
  • 5.0.3                                ...           ts4.8 (3 years ago)
  • 5.0.3                                ...           ts4.9 (3 years ago)
  • 5.0.3                                ...           ts5.0 (3 years ago)
  • 5.0.3                                ...           ts5.1 (3 years ago)
  • 5.0.3                                ...           ts5.2 (3 years ago)
  • 5.0.3                                ...           ts5.3 (3 years ago)

15 Versions

  • 5.0.3                                ...           3 years ago
  • 5.0.2                                ...           5 years ago
  • 5.0.1                                ...           6 years ago
  • 5.0.0                                ...           6 years ago
  • 0.0.28                                ...           10 years ago
  • 0.0.27                                ...           10 years ago
  • 0.0.26-alpha                                ...           10 years ago
  • 0.0.25-alpha                                ...           10 years ago
  • 0.0.24-alpha                                ...           10 years ago
  • 0.0.23-alpha                                ...           10 years ago
  • 0.0.22-alpha                                ...           10 years ago
  • 0.0.21-alpha                                ...           10 years ago
  • 0.0.20-alpha                                ...           10 years ago
  • 0.0.15-alpha                                ...           10 years ago
  • 0.0.14-alpha                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |