import { type Any } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Cast } = Any;
Ask TS to re-check that A1
extends A2
.
And if it fails, A2
will be enforced anyway.
Can also be used to add constraints on parameters.
import { type Any } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Cast } = Any;
Ask TS to re-check that A1
extends A2
.
And if it fails, A2
will be enforced anyway.
Can also be used to add constraints on parameters.