Comparing version 0.1.24 to 0.1.25
import {IsEqual} from './comparison'; | ||
import {Primitive} from './types'; | ||
import {PlainObject, Primitive} from './types'; | ||
@@ -268,5 +268,3 @@ // Extract keys | ||
export type OptionalizeUndefinedDeep<T> = T extends Primitive | ||
? T | ||
: T extends object | ||
export type OptionalizeUndefinedDeep<T> = T extends PlainObject | ||
? { | ||
@@ -286,3 +284,3 @@ [K in KeyOfValueContainingType<T, undefined>]?: OptionalizeUndefinedDeep< | ||
type ReplaceString< | ||
export type ReplaceString< | ||
T extends string, | ||
@@ -289,0 +287,0 @@ TSearch extends string, |
@@ -15,1 +15,11 @@ export type Primitive = | ||
export type Constructor<T extends object = object> = new (...args: any[]) => T; | ||
export interface PlainObject { | ||
[key: string]: unknown; | ||
} | ||
export type JSONValue = Primitive | JSONObject | JSONValue[]; | ||
export interface JSONObject { | ||
[key: string]: JSONValue; | ||
} |
{ | ||
"name": "tslang", | ||
"version": "0.1.24", | ||
"version": "0.1.25", | ||
"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
13517
367