Skip to content

Commit

Permalink
Merge pull request #104 from iposokhin/readme-fix
Browse files Browse the repository at this point in the history
docs(readme): fix description fordebounce method
  • Loading branch information
sergeysova authored Oct 20, 2020
2 parents c061b7a + 65c97d9 commit 3363ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ import { debounce } from 'patronum/debounce';
// You should call this event
const trigger = createEvent<number>();

const target = debounce(trigger, 200);
const target = debounce({ source: trigger, timeout: 200 });

target.watch((payload) => console.info('debounced', payload));

Expand Down

0 comments on commit 3363ff9

Please sign in to comment.