import { describe, it } from "vitest"; import { AssertFalse, AssertTrue, Expect, } from "inferred-types/types"; import { HasNonVariant } from "~"; import { Dictionary, EmptyObject } from "inferred-types"; describe("HasNonVariant", () => { it("positive tests", () => { type T1 = HasNonVariant<{ lib: "kind-error"} >; type T2 = HasNonVariant<{ answer: 42; foo: string }>; type T3 = HasNonVariant>; // no config == optional anything type cases = [ Expect>, Expect>, Expect>, ]; }); it("negative tests", () => { type F1 = HasNonVariant; type F3 = HasNonVariant<{ answer: string }>; type F4 = HasNonVariant<{ answer: 42 | undefined }>; type cases = [ Expect>, Expect>, Expect>, ]; }); });