Skip to content

Commit

Permalink
chore: fix typo in utils.ts (#12927) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
huxinfeng committed Jan 12, 2023
1 parent 0e8511a commit d52fbff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/utils.ts
@@ -1,3 +1,3 @@
// 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 d52fbff

Please sign in to comment.