Checks if type T is the unknown type.
T
unknown
The type to check if it is the unknown type.
import { assertType, IsUnknown } from "@std/testing/types";assertType<IsUnknown<unknown>>(true);assertType<IsUnknown<never>>(false); Copy
import { assertType, IsUnknown } from "@std/testing/types";assertType<IsUnknown<unknown>>(true);assertType<IsUnknown<never>>(false);
Checks if type
Tis theunknowntype.