UNPKG

296 BTypeScriptView Raw
1import type { ReactNode } from 'react';
2declare type Regulated<T> = T extends null | undefined | false ? never : T;
3/**
4 * Check if the `node` is visible Node (not null, undefined, or false)
5 */
6export declare function isNodeWithContent(node: ReactNode): node is Regulated<ReactNode>;
7export {};