@types/flat
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -13,6 +13,6 @@ // Type definitions for flat 5.0.0 | ||
interface FlattenOptions { | ||
delimiter?: string; | ||
safe?: boolean; | ||
maxDepth?: number; | ||
transformKey?: (key: string) => string; | ||
delimiter?: string | undefined; | ||
safe?: boolean | undefined; | ||
maxDepth?: number | undefined; | ||
transformKey?: ((key: string) => string) | undefined; | ||
} | ||
@@ -31,6 +31,6 @@ | ||
interface UnflattenOptions { | ||
delimiter?: string; | ||
object?: boolean; | ||
overwrite?: boolean; | ||
transformKey?: (key: string) => string; | ||
delimiter?: string | undefined; | ||
object?: boolean | undefined; | ||
overwrite?: boolean | undefined; | ||
transformKey?: ((key: string) => string) | undefined; | ||
} | ||
@@ -37,0 +37,0 @@ |
{ | ||
"name": "@types/flat", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "TypeScript definitions for flat", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/flat", | ||
"license": "MIT", | ||
@@ -27,4 +28,4 @@ "contributors": [ | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "bed5e4049506d65206ddc4f652a1aaed6bb5c6a5096117d0da172487a4bc3c0c", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "4bcf2ca1ca58312c1e48538bddbb48579c1febf9ec86577cd80fa4415bfb81a6", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,51 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/flat. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/flat/index.d.ts) | ||
````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: Fri, 15 May 2020 04:09:29 GMT | ||
* Last updated: Tue, 06 Jul 2021 20:32:59 GMT | ||
* Dependencies: none | ||
@@ -14,0 +60,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5027
0
63