UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

7 lines (6 loc) 279 B
import { IsLiteral } from "type-fest"; //#region src/internals/types.d.ts type NonNil<T> = Exclude<T, null | undefined>; type IsLiteral$1<T> = IsLiteral<T> extends true ? true : T extends null | undefined ? true : false; //#endregion export { IsLiteral$1 as IsLiteral, NonNil };