Skip to content

Commit

Permalink
fix: add type definition for useList() remove() method
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Feb 23, 2019
1 parent dc6df60 commit ea2dc43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/useList.ts
Expand Up @@ -3,6 +3,7 @@ import {useState} from 'react';
export interface Actions<T> {
set: (list: T[]) => void;
updateAt: (index: number, item: T) => void;
remove: (index: number) => void;
push: (item: T) => void;
filter: (fn: (value: T) => boolean) => void;
sort: (fn?: (a: T, b: T) => number) => void;
Expand Down

0 comments on commit ea2dc43

Please sign in to comment.