persona-community-5/.pnpm-store/v3/files/91/31635a8aee0dfd6f542418ec5c63b0f4bd379a7512f7febc55214b980743d1bfb238183c3c1c96a2fb7c27bb122c2d887a61c57d06a3e039955ed5ec4223a6
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

21 lines
419 B
Plaintext

/**
Returns a boolean for whether the given type is `null`.
@example
```
import type {IsNull} from 'type-fest';
type NonNullFallback<T, Fallback> = IsNull<T> extends true ? Fallback : T;
type Example1 = NonNullFallback<null, string>;
//=> string
type Example2 = NonNullFallback<number, string>;
//=? number
```
@category Type Guard
@category Utilities
*/
export type IsNull<T> = [T] extends [null] ? true : false;