@zedux/atoms
Version:
A Molecular State Engine for React
22 lines (21 loc) • 582 B
TypeScript
import { SelectorCache } from '../classes/Selectors.js';
import { AnyAtomInstance } from '../types/index.js';
export declare type InjectorDescriptor<T = any> = T extends undefined ? {
cleanup?: () => void;
result?: T;
type: string;
} : {
cleanup?: () => void;
result: T;
type: string;
};
export interface StackItem {
/**
* The atom instance or selector cache that's currently evaluating
*/
node: AnyAtomInstance | SelectorCache;
/**
* The high-def timestamp of when the item was pushed onto the stack
*/
start?: number;
}