Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/flat

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/flat - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

16

flat/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc