UNPKG

361 BTypeScriptView Raw
1import { Iteration } from './Iteration';
2/**
3 * Get the position of `I` (**number**)
4 * @param I to query
5 * @returns `number`
6 * @example
7 * ```ts
8 * import {I} from 'ts-toolbelt'
9 *
10 * type i = I.IterationOf<'20'>
11 *
12 * type test0 = I.Pos<i> // 20
13 * type test1 = I.Pos<I.Next<i>> // 21
14 * ```
15 */
16export declare type Pos<I extends Iteration> = I[0];