Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/effection/test/suite.ts>expectType

Structured concurrency and effects for JavaScript
Latest
variable expectType
import { expectType } from "https://deno.land/x/effection@3.0.3/test/suite.ts";

Asserts the value type is assignable to the generic Type.

expectType<number>(123);
expectType<boolean>(true);

type

<Type>(value: Type) => void