UNPKG

@augment-vir/assert

Version:

A collection of assertions for test and production code alike.

32 lines (31 loc) 649 B
/** Uses the expect-type package to assert type matching. */ function tsType( /** Run-time value to type check. */ // eslint-disable-next-line @typescript-eslint/no-unused-vars input) { return { equals: () => { }, notEquals: () => { }, matches: () => { }, notMatches: () => { }, slowEquals: () => { }, }; } const assertions = { tsType, }; export const tsTypeGuards = { assert: assertions, assertWrap: { tsType: undefined, }, check: { tsType: undefined, }, checkWrap: { tsType: undefined, }, waitUntil: { tsType: undefined, }, };