IsAny

import { IsAny } from "jsr:@ende/testing/types";

type alias

type IsAny<T> = 0 extends (1 & T) ? true : false

Checks if type T is the any type.

Example: Usage

import { assertType, IsAny } from "@ende/testing/types";

assertType<IsAny<any>>(true);
assertType<IsAny<unknown>>(false);

Source