mirror of https://github.com/vuejs/core.git
parent
bbb66d7ac7
commit
3bed82be32
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue