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:
372 bytes
|
Line | |
---|
1 | import { Iteration } from './Iteration';
|
---|
2 | /**
|
---|
3 | * Get the position of `I` (**string**)
|
---|
4 | * @param I to query
|
---|
5 | * @returns [[String]]
|
---|
6 | * @example
|
---|
7 | * ```ts
|
---|
8 | * import {I} from 'ts-toolbelt'
|
---|
9 | *
|
---|
10 | * type i = I.IterationOf<'20'>
|
---|
11 | *
|
---|
12 | * type test0 = I.Key<i> // '20'
|
---|
13 | * type test1 = I.Key<I.Next<i>> // '21'
|
---|
14 | * ```
|
---|
15 | */
|
---|
16 | export declare type Key<I extends Iteration> = `${I[0]}`;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.