forked from jchomaz/Vulture
Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
14
VApp/node_modules/array-flatten/dist/index.d.ts
generated
vendored
Normal file
14
VApp/node_modules/array-flatten/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Pick the value from an array.
|
||||
*/
|
||||
export declare type PickValue<T> = T extends ReadonlyArray<any> ? {
|
||||
[K in Extract<keyof T, number>]: PickValue<T[K]>;
|
||||
}[number] : T;
|
||||
/**
|
||||
* Flatten an `ArrayLike` object in TypeScript.
|
||||
*/
|
||||
export declare type FlatArray<T extends ArrayLike<any>> = Array<PickValue<T[number]>>;
|
||||
/**
|
||||
* Flatten an array indefinitely.
|
||||
*/
|
||||
export declare function flatten<T extends ArrayLike<any>>(array: T): FlatArray<T>;
|
||||
Reference in New Issue
Block a user