Skip to content

Commit

Permalink
feat(argumenterror): add type default of unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Feb 7, 2021
1 parent 0cfff79 commit 55be30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/errors/ArgumentError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { UserError } from './UserError';
* @since 1.0.0
* @property name This will be `'ArgumentError'` and can be used to distinguish the type of error when any error gets thrown
*/
export class ArgumentError<T> extends UserError {
export class ArgumentError<T = unknown> extends UserError {
public readonly argument: IArgument<T>;
public readonly parameter: string;

Expand Down

0 comments on commit 55be30a

Please sign in to comment.