@itihon/file-tree-view
Version:
File tree view component based on Web Components API
12 lines (11 loc) • 378 B
TypeScript
import type FileTreeView from './FileTreeView';
type StateType = 'expanded';
type Path = string;
type StateValue = boolean;
type State = Map<Path, StateValue>;
type States = Map<StateType, State>;
declare class StateRegistry extends Map<FileTreeView, States> {
createStates(types: Array<StateType>): States;
}
declare const _default: StateRegistry;
export default _default;