UNPKG

@minofrk/msf-io-ts

Version:

Type utilities with io-ts for MSF format.

6 lines (5 loc) 440 B
import { Type, TypeOf, OutputOf, Mixed } from 'io-ts'; export declare type Septuple<T> = [T, T, T, T, T, T, T]; export declare type ReadonlySeptuple<T> = readonly [T, T, T, T, T, T, T]; export declare function septuple<CS extends Mixed>(codec: CS): Type<Septuple<TypeOf<CS>>, Septuple<OutputOf<CS>>>; export declare function readonlySeptuple<CS extends Mixed>(codec: CS): Type<ReadonlySeptuple<TypeOf<CS>>, ReadonlySeptuple<OutputOf<CS>>>;