type-fns
Version:
A set of types, type checks, and type guards for simpler, safer, and easier to read code.
11 lines • 399 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const pick_1 = require("./pick");
describe('pick', () => {
it('should satisfy the standard Pick type', () => {
const withAll = { a: 1, b: 2 };
const pickKeyTypeFound = (0, pick_1.pick)(withAll, ['a']);
const pickKeyTypeCheck = pickKeyTypeFound;
});
});
//# sourceMappingURL=pick.test.js.map