Skip to content

Commit

Permalink
fix:spell checker (vuejs#6982)
Browse files Browse the repository at this point in the history
Co-authored-by: hakim <hakim.lu@yunlsp.com>
  • Loading branch information
2 people authored and chrislone committed Feb 4, 2023
1 parent 33db948 commit 97b963c
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 97b963c

Please sign in to comment.