chore: comment typos (#12878)

Co-authored-by: 方恒 <fangheng@shwpg.com>
This commit is contained in:
Caichong 2022-12-14 16:43:02 +08:00 committed by GitHub
parent ca11dc6a86
commit 2e57061766
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
types/common.d.ts vendored
View File

@ -14,7 +14,7 @@ type Equal<Left, Right> =
export type HasDefined<T> = Equal<T, unknown> extends true ? false : true 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 // https://stackoverflow.com/questions/49927523/disallow-call-with-any/49928360#49928360
export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N