Skip to content

Commit

Permalink
refactor: align set-required with code style
Browse files Browse the repository at this point in the history
  • Loading branch information
ephys committed Feb 8, 2022
1 parent a10557e commit 0841ece
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/set-required.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* Full credits to sindresorhus/type-fest
*
*
* https://github.com/sindresorhus/type-fest/blob/v0.8.1/source/set-required.d.ts
*
*
* Thank you!
*/
export type SetRequired<BaseType, Keys extends keyof BaseType = keyof BaseType> =
Expand All @@ -13,4 +13,4 @@ export type SetRequired<BaseType, Keys extends keyof BaseType = keyof BaseType>
// If `InferredType` extends the previous, then for each key, use the inferred type key.
infer InferredType
? {[KeyType in keyof InferredType]: InferredType[KeyType]}
: never;
: never;

0 comments on commit 0841ece

Please sign in to comment.