@codelytv/primitives-type
Version:
Type entity primitives from value objects
28 lines • 1.12 kB
JavaScript
import { expectTypeOf } from "expect-type";
describe("Primitives", function () {
it("should ensure to only return primitive properties excluding methods", function () {
expectTypeOf().toEqualTypeOf();
});
it("should get primitive array type from value object array", function () {
expectTypeOf().toEqualTypeOf();
});
it("should generate nested primitive object", function () {
expectTypeOf().toEqualTypeOf();
});
it("should generate nested primitive type from array of value objects prop", function () {
expectTypeOf().toEqualTypeOf();
});
it("should get primitive type in case it is not a value object", function () {
expectTypeOf().toEqualTypeOf();
});
it("should get primitive ISO string type from Date", function () {
expectTypeOf().toEqualTypeOf();
});
it("should infer the optional properties", function () {
expectTypeOf().toEqualTypeOf();
});
it("should infer properties with unknown type", function () {
expectTypeOf().toEqualTypeOf();
});
});
//# sourceMappingURL=Primitives.test.js.map