@vnmfify/core
Version:
```shell npm i @vnmfify/core -S ```
8 lines (7 loc) • 312 B
TypeScript
/// <reference types="react" />
interface CollapseContextValue {
isExpanded?: (dataKey: number | string) => boolean;
toggleItem?: (dataKey: number | string, expanded: boolean) => void;
}
declare const CollapseContext: import("react").Context<CollapseContextValue>;
export default CollapseContext;