types-testing
Version:
Test TypeScript types at test runner runtime - Works seamlessly with Jest, Vitest, and Bun.
15 lines (14 loc) • 296 B
JavaScript
const assertionWithTypeArgument = (fn) => {
const _fn = fn;
_fn.needTypeArgument = true;
return _fn;
};
const assertionWithoutTypeArgument = (fn) => {
const _fn = fn;
_fn.needTypeArgument = false;
return _fn;
};
export {
assertionWithTypeArgument,
assertionWithoutTypeArgument
};