Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/typical/utils.ts>Check

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Check
import { type Check } from "https://deno.land/x/rimbu@1.0.2/typical/utils.ts";

Returns never if the given type is false, otherwise unknown.

Examples

Example 1

Check<IsEven<4>> => unknown
Check<IsEven<5>> => never
definition: V extends false ? never : unknown