UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

17 lines (16 loc) 361 B
import { Iteration } from './Iteration'; /** * Get the position of `I` (**number**) * @param I to query * @returns `number` * @example * ```ts * import {I} from 'ts-toolbelt' * * type i = I.IterationOf<'20'> * * type test0 = I.Pos<i> // 20 * type test1 = I.Pos<I.Next<i>> // 21 * ``` */ export declare type Pos<I extends Iteration> = I[0];