Skip to content

Commit

Permalink
fix: update types to support TS 4.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowcs committed Aug 26, 2022
1 parent d29a4e2 commit 80f5eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type CustomErrorFunction<Properties> = (this: Properties, ...args: any[]) => voi
* new HttpError(404, 'Not found')
* ```
*/
export function customErrorFactory<Properties>(
export function customErrorFactory<Properties extends CustomErrorProperties>(
fn: CustomErrorFunction<Properties>,
parent: GenericErrorConstructor = Error,
) {
Expand Down

0 comments on commit 80f5eb0

Please sign in to comment.