formatting

This commit is contained in:
Lucy Cifferello
2022-11-15 12:39:04 -05:00
parent 7e57d0fb87
commit c465664a07
2 changed files with 22 additions and 18 deletions

View File

@@ -22,5 +22,5 @@ export const errorCode = (code: number, error: string) => ({
export const error = (error: string) => ({ error });
export const ok = { result: null };
// deno-lint-ignore no-explicit-any
export const isKnownError = (e: unknown): e is T.KnownError => e instanceof Object && ('error' in e || "error-code" in e)
export const isKnownError = (e: unknown): e is T.KnownError =>
e instanceof Object && ("error" in e || "error-code" in e);