@saber2pr/react
Version:
react in Typescript.
14 lines (13 loc) • 545 B
TypeScript
declare const setMaxStackSize: (size: number) => void;
declare const resetStackSize: (id?: string) => void;
declare const resetStack: () => void;
declare type StackSizeMap = {
[id: string]: number;
};
declare type StackListener = (stackSize: {
id: string;
size: number;
}, stackSizeMap: StackSizeMap) => void;
declare const watchStackSize: (callback: StackListener) => () => void;
declare const TestStackSize: (id?: string) => void;
export { setMaxStackSize, TestStackSize, resetStackSize, watchStackSize, resetStack };