FrontPastel/node_modules/@mui/base/useList/ListContext.d.ts

9 lines
368 B
TypeScript
Raw Normal View History

2024-04-17 13:55:11 +00:00
import * as React from 'react';
import { ListAction } from './listActions.types';
import { ListItemState } from './useList.types';
export interface ListContextValue<ItemValue> {
dispatch: (action: ListAction<ItemValue>) => void;
getItemState: (item: ItemValue) => ListItemState;
}
export declare const ListContext: React.Context<ListContextValue<any> | null>;