UNPKG

slightning-coco-widget

Version:

SLIGHTNING 的 CoCo 控件框架。

8 lines (7 loc) 303 B
import type { ReactNode } from 'react'; declare type Regulated<T> = T extends null | undefined | false ? never : T; /** * Check if the `node` is visible Node (not null, undefined, or false) */ export declare function isNodeWithContent(node: ReactNode): node is Regulated<ReactNode>; export {};