source: node_modules/ts-toolbelt/out/List/Head.d.ts

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: 259 bytes
Line 
1import { Length } from './Length';
2import { List } from './List';
3/**
4 * Get the first entry of `L`
5 * @param L to extract from
6 * @returns [[Any]]
7 * @example
8 * ```ts
9 * ```
10 */
11export declare type Head<L extends List> = Length<L> extends 0 ? never : L[0];
Note: See TracBrowser for help on using the repository browser.