@types/deep-freeze
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -5,3 +5,3 @@ // Type definitions for deep-freeze 0.1 | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
// TypeScript Version: 3.1 | ||
@@ -15,5 +15,6 @@ export = deepFreeze; | ||
declare namespace deepFreeze { | ||
type DeepReadonly<T> = { | ||
readonly [P in keyof T]: DeepReadonly<T[P]> | ||
}; | ||
type DeepReadonly<T> = | ||
T extends (...args: any) => any | ||
? T | ||
: { readonly [P in keyof T]: DeepReadonly<T[P]> }; | ||
} |
{ | ||
"name": "@types/deep-freeze", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "TypeScript definitions for deep-freeze", | ||
@@ -9,19 +9,22 @@ "license": "MIT", | ||
"name": "Bart van der Schoor", | ||
"url": "https://github.com/Bartvds" | ||
"url": "https://github.com/Bartvds", | ||
"githubUsername": "Bartvds" | ||
}, | ||
{ | ||
"name": "Aluan Haddad", | ||
"url": "https://github.com/aluanhaddad" | ||
"url": "https://github.com/aluanhaddad", | ||
"githubUsername": "aluanhaddad" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/deep-freeze" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "28b45f6b2aace30ce39c917ab8afd884ade25eae20829a866a1b594b08a50b1f", | ||
"typeScriptVersion": "2.1" | ||
"typesPublisherContentHash": "d9a3ddb43d9bef869373b013186e09caf357456477df766e3a325f3dacd4ec4c", | ||
"typeScriptVersion": "3.1" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-freeze | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deep-freeze | ||
Additional Details | ||
* Last updated: Mon, 05 Jun 2017 19:55:52 GMT | ||
* Last updated: Mon, 05 Aug 2019 17:08:14 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>, Aluan Haddad <https://github.com/aluanhaddad>. | ||
These definitions were written by Bart van der Schoor <https://github.com/Bartvds>, and Aluan Haddad <https://github.com/aluanhaddad>. |
Sorry, the diff of this file is not supported yet
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
3307
15