@stoplight/types
Advanced tools
Comparing version 11.4.1 to 11.5.0
@@ -1,2 +0,2 @@ | ||
/** Adapted from https://github.com/krzkaczor/ts-essentials */ | ||
export { DeepPartial, DeepReadonly } from 'utility-types'; | ||
/** Essentials */ | ||
@@ -9,11 +9,2 @@ export declare type Primitive = string | number | boolean | undefined | null; | ||
export declare type DictionaryValues<T> = T extends Dictionary<infer U> ? U : never; | ||
/** Like Partial but recursive */ | ||
export declare type DeepPartial<T> = { | ||
[P in keyof T]?: T[P] extends Array<infer U> ? Array<DeepPartial<U>> : T[P] extends ReadonlyArray<infer U2> ? ReadonlyArray<DeepPartial<U2>> : DeepPartial<T[P]>; | ||
}; | ||
/** Like Readonly but recursive */ | ||
export declare type DeepReadonly<T> = T extends Primitive ? T : T extends Array<infer U> ? ReadonlyArray<U> : T extends Function ? T : DeepReadonlyObject<T>; | ||
declare type DeepReadonlyObject<T> = { | ||
readonly [P in keyof T]: DeepReadonly<T[P]>; | ||
}; | ||
/** Easy create opaque types ie. types that are subset of their original types (ex: positive numbers, uppercased string) */ | ||
@@ -24,2 +15,1 @@ export declare type Opaque<K, T> = T & { | ||
export declare type Optional<T> = T | undefined; | ||
export {}; |
"use strict"; | ||
/** Adapted from https://github.com/krzkaczor/ts-essentials */ | ||
exports.__esModule = true; |
{ | ||
"name": "@stoplight/types", | ||
"version": "11.4.1", | ||
"version": "11.5.0", | ||
"description": "Common typings for the Stoplight ecosystem.", | ||
@@ -34,3 +34,4 @@ "keywords": [], | ||
"dependencies": { | ||
"@types/json-schema": "^7.0.4" | ||
"@types/json-schema": "^7.0.4", | ||
"utility-types": "^3.10.0" | ||
}, | ||
@@ -37,0 +38,0 @@ "devDependencies": { |
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
28173
2
486
+ Addedutility-types@^3.10.0
+ Addedutility-types@3.11.0(transitive)