Skip to content

Commit

Permalink
fix: ttl and limit are no longer optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 committed Sep 4, 2023
1 parent 2c3d657 commit 023af05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/throttler-module-options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export type Resolvable<T extends number | string | boolean> =
=======
>>>>>>> ccc52db (feat: allowfor multiple throttler contexts)

export type Resolvable<T extends number | string | boolean> =
| T
| ((context: ExecutionContext) => T | Promise<T>);

/**
* @publicApi
*/
Expand Down

0 comments on commit 023af05

Please sign in to comment.