import { assert } from "../assert.ts";import { is } from "../is.ts";import { Any } from "ts-toolbelt DENOIFY: DEPENDENCY UNMET (DEV DEPENDENCY)";import { doExtends } from "../doExtends.ts";
{ const x: string | number | boolean = null as any;
assert(is<string>(x));
doExtends<Any.Equals<typeof x, string>, 1>();
console.log("PASS");}
{ const x: string | number | boolean = null as any;
assert(!is<string>(x));
doExtends<Any.Equals<typeof x, number | boolean>, 1>();
console.log("PASS");}
{ is<unknown>(null);
try { is<unknown>(null); throw new Error("FAIL"); } catch {}
console.log("PASS");}