@donverduyn/react-runtime
Version:
effect-ts react integration
24 lines (23 loc) • 745 B
TypeScript
import * as React from 'react';
export declare const ID_PROP = "_id";
export declare const getStaticDeclarationId: <C extends React.FC<any>>(component: C & {
[ID_PROP]?: string;
}) => string | undefined;
export declare const NS_SKETCH = "89e1b7f1-2a3f-4e6d-8f2d-5a3f0c1f1a77";
type SketchStats = {
total: number;
host: number;
declComposite: number;
anonComposite: number;
portals: number;
textish: number;
keyed: number;
};
export type SketchQuality = 'weak' | 'ok' | 'strong';
export type ChildrenSketch = {
id: string;
quality: SketchQuality;
stats: SketchStats;
};
export declare function createChildrenSketch(children: React.ReactNode, maxDepth?: number, ns?: string): ChildrenSketch;
export {};