Skip to content

Commit

Permalink
chore: disable biome for any types
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Tkacz committed Aug 20, 2024
1 parent 1b66c9f commit cada3d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/errors/InternalError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ export class InternalError<T = ErrorDetails> extends Error {
}

export function isInternalError(error: unknown): error is InternalError {
// biome-ignore lint/suspicious/noExplicitAny: checking for existence of prop outside or Error interface
return isError(error) && (error as any)[Symbol.for(INTERNAL_ERROR_SYMBOL_KEY)] === true
}
5 changes: 4 additions & 1 deletion src/errors/PublicNonRecoverableError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@ export class PublicNonRecoverableError<T = ErrorDetails> extends Error {
}

export function isPublicNonRecoverableError(error: unknown): error is PublicNonRecoverableError {
return isError(error) && (error as any)[Symbol.for(PUBLIC_NON_RECOVERABLE_ERROR_SYMBOL_KEY)] === true
return (
// biome-ignore lint/suspicious/noExplicitAny: checking for existence of prop outside or Error interface
isError(error) && (error as any)[Symbol.for(PUBLIC_NON_RECOVERABLE_ERROR_SYMBOL_KEY)] === true
)
}

0 comments on commit cada3d4

Please sign in to comment.