Skip to content

Commit

Permalink
fix:spell checker (#6982)
Browse files Browse the repository at this point in the history
Co-authored-by: hakim <hakim.lu@yunlsp.com>
  • Loading branch information
HakimLu and hakim committed Oct 28, 2022
1 parent bbb66d7 commit 3bed82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/typeUtils.ts
Expand Up @@ -7,6 +7,6 @@ export type UnionToIntersection<U> = (
// make keys required but keep undefined values
export type LooseRequired<T> = { [P in keyof (T & Required<T>)]: T[P] }

// If the the type T accepts type "any", output type Y, otherwise output type N.
// If the type T accepts type "any", output type Y, otherwise output type N.
// https://stackoverflow.com/questions/49927523/disallow-call-with-any/49928360#49928360
export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N

0 comments on commit 3bed82b

Please sign in to comment.