Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Interfaces

Type Aliases

Type Aliases

MatchRule<T, R>: R extends ((input: T) => infer O) ? O : never

Type Parameters

  • T

  • R extends Rule<any>

Pattern<I, O>: ((input: I) => O) | [I, O]

Format consists of multiple encoding defines what input type I maps to what output type O. It can be represented via function type or a [I, O] tuple.

Type Parameters

  • I

  • O

Rule<Format>: Format extends [infer I, infer O] ? ((input: I) => O) : Format extends ((input: infer I) => infer O) ? ((input: I) => O) : never

Type Parameters

Generated using TypeDoc