Skip to main content
Module

x/vue3_reactivity/shared/typeUtils.ts

vue3_reactivity is forck by @vue/reactivity for deno.
Latest
File
// deno-lint-ignore-file no-explicit-anyexport type UnionToIntersection<U> = ( U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never
// make keys required but keep undefined valuesexport type LooseRequired<T> = { [P in string & keyof T]: T[P] }
// If the the type T accepts type "any", output type Y, otherwise output type N.// https://stackoverflow.com/questions/49927523/disallow-call-with-any/49928360#49928360export type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N