import { expect, test } from "vitest"; import * as t from "../index"; test("accepts anything", () => { t.any.assert(5); t.any.assert("five"); t.any.assert({}); }); test("converts to typescript", () => { expect(t.toTypescript(t.any)).toEqual("any"); }); test("converts to JSON schema", () => { expect(t.toJSONSchema("any", t.any)).toEqual({ $schema: t.JSON_SCHEMA_VERSION, title: "any", }); });