import type { TMaybeObject } from "./t-maybe-object.js"; interface ITest { a: number; b: number; } describe("=> TMaybeObject", () => { it("| produces the expected compiler errors", () => { const empty: TMaybeObject = {}; empty; const filled: TMaybeObject = { a: 1, b: 2 }; filled; // @ts-expect-error - we should get all the object or none of it const partial: TMaybeObject = { a: 1 }; partial; // @ts-expect-error - all property types must match const mismatch: TMaybeObject = { a: "", b: 1 }; mismatch; }); });