UNPKG

rambda

Version:

Lightweight faster alternative to Ramda

11 lines (8 loc) 456 B
import {Repeat} from './Tuple/Repeat' import {Equals} from './Any/Equals' import {Compute} from './Any/Compute' import {True, False, Boolean} from './Boolean/Boolean' export type Pass = True export type Fail = False export declare function check<Type, Expect, Outcome extends Boolean, Strict extends Boolean = True>(debug?: Compute<Type>): Equals<Equals<Type, Expect>, Outcome> export declare function checks(asserts: Partial<Repeat<Pass, '30'>>): void;