You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
368 B
TypeScript

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>;