Skip to main content
Module

x/tsafe/lab/UnpackTypeGuard.ts

🔩 The missing TypeScript utils
Go to Latest
File
/* eslint-disable @typescript-eslint/no-explicit-any */
export type UnpackTypeGuard<T extends (o: any) => o is unknown> = T extends (o: any) => o is infer U ? U : never;