We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc6df60 commit ea2dc43Copy full SHA for ea2dc43
src/useList.ts
@@ -3,6 +3,7 @@ import {useState} from 'react';
3
export interface Actions<T> {
4
set: (list: T[]) => void;
5
updateAt: (index: number, item: T) => void;
6
+ remove: (index: number) => void;
7
push: (item: T) => void;
8
filter: (fn: (value: T) => boolean) => void;
9
sort: (fn?: (a: T, b: T) => number) => void;
0 commit comments