chore: fix typo in utils.ts (#12927) [skip ci]

This commit is contained in:
星宿君 2023-01-12 22:47:00 +08:00 committed by GitHub
parent 0e8511a8be
commit d52fbff7a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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