Skip to content

Commit

Permalink
chore: comment typos (#12878)
Browse files Browse the repository at this point in the history
Co-authored-by: 方恒 <[email protected]>
  • Loading branch information
FlyingCaiChong and 方恒 committed Dec 14, 2022
1 parent ca11dc6 commit 2e57061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/common.d.ts
Expand Up @@ -14,7 +14,7 @@ type Equal<Left, Right> =

export type HasDefined<T> = Equal<T, unknown> extends true ? false : true

// 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

Expand Down

0 comments on commit 2e57061

Please sign in to comment.