Skip to content

Commit

Permalink
docs: fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Col0ring committed Jun 1, 2022
1 parent 1e7c227 commit 4ccee81
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/types-kit.conditionalomit.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ export type ConditionalOmit<
// Expect: { b: string }
type NewProps = ConditionalPick<Props, number | boolean>
// Set exact true, expect: { a?: number, b: string }
type NewProps = ConditionalPick<Props, number | boolean, true>
type NewProps2 = ConditionalPick<Props, number | boolean, true>
```
2 changes: 1 addition & 1 deletion docs/types-kit.conditionalpick.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ export type ConditionalPick<T, Condition, Exact extends boolean = false> = Pick<
// Expect: { a?: number, c: boolean }
type NewProps = ConditionalPick<Props, number | boolean>
// Set exact true, expect: { c: boolean }
type NewProps = ConditionalPick<Props, number | boolean>
type NewProps2 = ConditionalPick<Props, number | boolean, true>
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion src/mapper/omit.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export type DeepOmit<T, K extends DeepKeys<T>> = IsNever<
* // Expect: { b: string }
* type NewProps = ConditionalPick<Props, number | boolean>
* // Set exact true, expect: { a?: number, b: string }
* type NewProps = ConditionalPick<Props, number | boolean, true>
* type NewProps2 = ConditionalPick<Props, number | boolean, true>
* ```
*/
export type ConditionalOmit<
Expand Down
2 changes: 1 addition & 1 deletion src/mapper/pick.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export type DeepPick<T, K extends DeepKeys<T>> = {
* // Expect: { a?: number, c: boolean }
* type NewProps = ConditionalPick<Props, number | boolean>
* // Set exact true, expect: { c: boolean }
* type NewProps = ConditionalPick<Props, number | boolean>
* type NewProps2 = ConditionalPick<Props, number | boolean, true>
* ```
*/
export type ConditionalPick<T, Condition, Exact extends boolean = false> = Pick<
Expand Down

0 comments on commit 4ccee81

Please sign in to comment.