type-plus
Version:
Provides additional types for TypeScript.
13 lines • 387 B
JavaScript
/**
* Test utilities for types.
*
* This is designed specifically for testing.
* The return value is the input `expected` parameter asserted as the first type parameter,
* so that the type can be further inspected.
*/
export const testType = new Proxy({}, {
get(_target, _prop, _receiver) {
return (expected) => expected;
}
});
//# sourceMappingURL=test_type.js.map