Skip to content

Commit

Permalink
feat: isNotFoundError()
Browse files Browse the repository at this point in the history
  • Loading branch information
uki00a committed Mar 21, 2020
1 parent a550d25 commit d41b4a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mod.ts
Expand Up @@ -45,6 +45,10 @@ export function nextTick(): Promise<void> {
});
}

export function isNotFoundError(error: any): boolean {
return error instanceof Deno.errors.NotFound;
}

export { path, process, fs, util }

(require as any).resolve = (): void => {
Expand Down

0 comments on commit d41b4a2

Please sign in to comment.