diff --git a/docs/types-kit.conditionalomit.md b/docs/types-kit.conditionalomit.md index 83c43dc..38a9486 100644 --- a/docs/types-kit.conditionalomit.md +++ b/docs/types-kit.conditionalomit.md @@ -30,6 +30,6 @@ export type ConditionalOmit< // Expect: { b: string } type NewProps = ConditionalPick // Set exact true, expect: { a?: number, b: string } - type NewProps = ConditionalPick + type NewProps2 = ConditionalPick ``` diff --git a/docs/types-kit.conditionalpick.md b/docs/types-kit.conditionalpick.md index 725da15..3d07022 100644 --- a/docs/types-kit.conditionalpick.md +++ b/docs/types-kit.conditionalpick.md @@ -29,6 +29,6 @@ export type ConditionalPick = Pick< // Expect: { a?: number, c: boolean } type NewProps = ConditionalPick // Set exact true, expect: { c: boolean } - type NewProps = ConditionalPick + type NewProps2 = ConditionalPick ``` diff --git a/package.json b/package.json index e3ab376..a48def2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "types-kit", - "version": "0.0.7", + "version": "0.0.8", "types": "./dist/index.d.ts", "description": "a types toolkit", "keywords": [ diff --git a/src/mapper/omit.d.ts b/src/mapper/omit.d.ts index 2ff8653..b549432 100644 --- a/src/mapper/omit.d.ts +++ b/src/mapper/omit.d.ts @@ -113,7 +113,7 @@ export type DeepOmit> = IsNever< * // Expect: { b: string } * type NewProps = ConditionalPick * // Set exact true, expect: { a?: number, b: string } - * type NewProps = ConditionalPick + * type NewProps2 = ConditionalPick * ``` */ export type ConditionalOmit< diff --git a/src/mapper/pick.d.ts b/src/mapper/pick.d.ts index 6455bf5..6fe0f61 100644 --- a/src/mapper/pick.d.ts +++ b/src/mapper/pick.d.ts @@ -103,7 +103,7 @@ export type DeepPick> = { * // Expect: { a?: number, c: boolean } * type NewProps = ConditionalPick * // Set exact true, expect: { c: boolean } - * type NewProps = ConditionalPick + * type NewProps2 = ConditionalPick * ``` */ export type ConditionalPick = Pick<