UNPKG

368 BTypeScriptView Raw
1import * as React from 'react';
2import { ListAction } from './listActions.types';
3import { ListItemState } from './useList.types';
4export interface ListContextValue<ItemValue> {
5 dispatch: (action: ListAction<ItemValue>) => void;
6 getItemState: (item: ItemValue) => ListItemState;
7}
8export declare const ListContext: React.Context<ListContextValue<any> | null>;