feat(types): mixins/extends support in TypeScript (#626)
This commit is contained in:
5
packages/runtime-core/src/helpers/typeUtils.ts
Normal file
5
packages/runtime-core/src/helpers/typeUtils.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export type UnionToIntersection<U> = (U extends any
|
||||
? (k: U) => void
|
||||
: never) extends ((k: infer I) => void)
|
||||
? I
|
||||
: never
|
||||
Reference in New Issue
Block a user