Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Iteration/Format"

Index

Type aliases

Type aliases

Format

Format<I, fmt>: { 's': I[2]; 'n': I[3]; }[fmt]

Is Key and Pos in a single type

Type parameters

returns

string | number

example

import {I} from 'ts-toolbelt'

/// Let's make '20' an iteration
type i = I.IterationOf<'20'> // [...]

type fmtS = I.Fmt<i, 's'> // '20'
type fmtN = I.Fmt<i, 'n'> //  20

Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.