main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
264 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * Transform a [[Union]] to an * *intersection**
|
---|
3 | * @param U to transform
|
---|
4 | * @returns `&`
|
---|
5 | * @example
|
---|
6 | * ```ts
|
---|
7 | * ```
|
---|
8 | */
|
---|
9 | export declare type IntersectOf<U extends any> = (U extends unknown ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.