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

x/tsafe/typeGuard.ts

🔩 The missing TypeScript utils
Go to Latest
File
/* eslint-disable @typescript-eslint/no-namespace *//* eslint-disable @typescript-eslint/no-explicit-any */
/** https://docs.tsafe.dev/typeguard */export function typeGuard<T>(_value: any, isMatched: boolean): _value is T { return isMatched;}