UNPKG

@lastboy/vue2

Version:

Fork of Vue 2.7.16 with patched CVE-2024-9506 (regex ReDoS vulnerability)

4 lines (3 loc) 219 B
// 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