Comparing version 0.1.8 to 0.1.9
@@ -1,5 +0,5 @@ | ||
export type IsEqual<TA, TB> = TA extends TB | ||
? (TB extends TA ? true : false) | ||
export type IsEqual<TA, TB> = [TA] extends [TB] | ||
? ([TB] extends [TA] ? true : false) | ||
: false; | ||
export type IsCompatible<T, TComparison> = T extends TComparison ? true : false; |
@@ -0,1 +1,2 @@ | ||
import {IsEqual} from './comparison'; | ||
import {Primitive} from './types'; | ||
@@ -98,2 +99,6 @@ | ||
export type Default<T, TDefault> = IsEqual<T, never> extends true | ||
? TDefault | ||
: T; | ||
type __DeepReadonly<T> = {readonly [P in keyof T]: DeepReadonly<T[P]>}; | ||
@@ -100,0 +105,0 @@ |
{ | ||
"name": "tslang", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "TypeScript Language Type Utilities.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
4353
112