source: node_modules/ts-toolbelt/out/Iteration/Prev.d.ts@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 387 bytes
Line 
1import { Iteration, IterationMap } from './Iteration';
2/**
3 * Move `I`'s position backwards
4 * @param I to move
5 * @returns [[Iteration]]
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.Prev<i>> // 19
14 * ```
15 */
16export declare type Prev<I extends Iteration> = IterationMap[I[2]];
Note: See TracBrowser for help on using the repository browser.