import { ListActions } from './useList'; import { IHookStateInitAction } from './misc/hookState'; export interface UpsertListActions extends Omit, 'upsert'> { upsert: (newItem: T) => void; } /** * @deprecated Use `useList` hook's upsert action instead */ export default function useUpsert(predicate: (a: T, b: T) => boolean, initialList?: IHookStateInitAction): [T[], UpsertListActions];