Skip to content

Commit

Permalink
feat: add raise util
Browse files Browse the repository at this point in the history
  • Loading branch information
grikomsn committed Oct 25, 2023
1 parent ff36438 commit 8072645
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/assert.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const raise = (message?: string, opts?: ErrorOptions): never => {
throw new Error(message, opts);
};

0 comments on commit 8072645

Please sign in to comment.