diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 0dc097738ae073897eb86b1fbb5324d34b3d9813..0000000000000000000000000000000000000000 diff --git a/dist/deep-nullable/index.d.ts b/dist/deep-nullable/index.d.ts index ba3852eaa05020cb79af42b530916625ab2efaa9..3f6b0e5cf7ef22e76cc7712b72271967ab7cfe1a 100644 --- a/dist/deep-nullable/index.d.ts +++ b/dist/deep-nullable/index.d.ts @@ -1,7 +1,31 @@ import { Builtin } from "../built-in"; import { IsTuple } from "../is-tuple"; -export declare type DeepNullable = Type extends Builtin ? Type | null : Type extends Map ? Map, DeepNullable> : Type extends ReadonlyMap ? ReadonlyMap, DeepNullable> : Type extends WeakMap ? WeakMap, DeepNullable> : Type extends Set ? Set> : Type extends ReadonlySet ? ReadonlySet> : Type extends WeakSet ? WeakSet> : Type extends ReadonlyArray ? Type extends IsTuple ? { - [Key in keyof Type]: DeepNullable | null; -} : Type extends Array ? Array> : ReadonlyArray> : Type extends Promise ? Promise> : Type extends {} ? { - [Key in keyof Type]: DeepNullable; -} : Type | null; +export declare type DeepNullable = Type extends Builtin + ? Type | null + : Type extends Map + ? Map, DeepNullable> + : Type extends ReadonlyMap + ? ReadonlyMap, DeepNullable> + : Type extends WeakMap + ? WeakMap> + : Type extends Set + ? Set> + : Type extends ReadonlySet + ? ReadonlySet> + : Type extends WeakSet + ? WeakSet + : Type extends ReadonlyArray + ? Type extends IsTuple + ? { + [Key in keyof Type]: DeepNullable | null; + } + : Type extends Array + ? Array> + : ReadonlyArray> + : Type extends Promise + ? Promise> + : Type extends {} + ? { + [Key in keyof Type]: DeepNullable; + } + : Type | null; diff --git a/dist/deep-undefinable/index.d.ts b/dist/deep-undefinable/index.d.ts index 9e157cd4b59fbb33c36c82bfc8967ba62e6e9888..04e3026545352b984d686723edf90779b79c7791 100644 --- a/dist/deep-undefinable/index.d.ts +++ b/dist/deep-undefinable/index.d.ts @@ -1,7 +1,31 @@ import { Builtin } from "../built-in"; import { IsTuple } from "../is-tuple"; -export declare type DeepUndefinable = Type extends Builtin ? Type | undefined : Type extends Map ? Map, DeepUndefinable> : Type extends ReadonlyMap ? ReadonlyMap, DeepUndefinable> : Type extends WeakMap ? WeakMap, DeepUndefinable> : Type extends Set ? Set> : Type extends ReadonlySet ? ReadonlySet> : Type extends WeakSet ? WeakSet> : Type extends ReadonlyArray ? Type extends IsTuple ? { - [Key in keyof Type]: DeepUndefinable | undefined; -} : Type extends Array ? Array> : ReadonlyArray> : Type extends Promise ? Promise> : Type extends {} ? { - [Key in keyof Type]: DeepUndefinable; -} : Type | undefined; +export declare type DeepUndefinable = Type extends Builtin + ? Type | undefined + : Type extends Map + ? Map, DeepUndefinable> + : Type extends ReadonlyMap + ? ReadonlyMap, DeepUndefinable> + : Type extends WeakMap + ? WeakMap> + : Type extends Set + ? Set> + : Type extends ReadonlySet + ? ReadonlySet> + : Type extends WeakSet + ? WeakSet + : Type extends ReadonlyArray + ? Type extends IsTuple + ? { + [Key in keyof Type]: DeepUndefinable | undefined; + } + : Type extends Array + ? Array> + : ReadonlyArray> + : Type extends Promise + ? Promise> + : Type extends {} + ? { + [Key in keyof Type]: DeepUndefinable; + } + : Type | undefined; diff --git a/package.json b/package.json index da3fa96d66333522b05e46b178ff3a2e98808d0a..263d52cd58edf499b6b91e3b17ce83607d862379 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,6 @@ "conditional-type-checks": "^1.0.4", "prettier": "^2.0.0", "rimraf": "^3.0.2", - "typescript": "^4.1.0" + "typescript": "^5.4.3" } }