Skip to content

Commit

Permalink
fix: throwError return type
Browse files Browse the repository at this point in the history
(from d07RiV but with semantic-release commit message)

fixes #252
  • Loading branch information
6utt3rfly committed Jul 6, 2024
1 parent 097ae12 commit e0df539
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export interface HookScope {
gobbleArguments: (untilICode: number) => PossibleExpression;
gobbleGroup: () => Expression;
gobbleArray: () => PossibleExpression;
throwError: (msg: string) => void;
throwError: (msg: string) => never;
}
```

Expand Down
2 changes: 1 addition & 1 deletion typings/tsd.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ declare module 'jsep' {
gobbleArguments: (untilICode: number) => PossibleExpression;
gobbleGroup: () => Expression;
gobbleArray: () => PossibleExpression;
throwError: (msg: string) => void;
throwError: (msg: string) => never;
}

export type HookType = 'gobble-expression' | 'after-expression' | 'gobble-token' | 'after-token' | 'gobble-spaces';
Expand Down

0 comments on commit e0df539

Please sign in to comment.