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:
334 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import { IntersectOf } from './IntersectOf';
|
---|
| 2 | /**
|
---|
| 3 | * Get the last item within an [[Union]]
|
---|
| 4 | * (⚠️ it might not preserve order)
|
---|
| 5 | * @param U
|
---|
| 6 | * @returns [[Any]]
|
---|
| 7 | * @example
|
---|
| 8 | * ```ts
|
---|
| 9 | * ```
|
---|
| 10 | */
|
---|
| 11 | export declare type Last<U extends any> = IntersectOf<U extends unknown ? (x: U) => void : never> extends (x: infer P) => void ? P : never;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.