@lifeart/gxt
Version:
<img align="right" width="95" height="95" alt="Philosopher’s stone, logo of PostCSS" src="./public/logo.png">
21 lines (19 loc) • 691 B
TypeScript
import { ComponentLike } from './types';
/**
* Push a component onto the parent context stack.
* Split into push/pop for hot path performance - avoids null check on every call.
*/
export declare const pushParentContext: (value: ComponentLike) => void;
/**
* Pop a component from the parent context stack.
*/
export declare const popParentContext: () => void;
/**
* Set or clear the parent context (backward compatibility wrapper).
*/
export declare const setParentContext: (value: ComponentLike | null) => void;
/**
* Get the current parent context component.
* Return type is 'any' to avoid type dependency on Component<any>.
*/
export declare const getParentContext: () => any;