Skip to content

Commit

Permalink
chore: adjust biome ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Tkacz committed Aug 21, 2024
1 parent 8ee2f5f commit b565e97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/errors/InternalError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ 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) &&
// biome-ignore lint/suspicious/noExplicitAny: checking for existence of prop outside or Error interface
((error as any)[Symbol.for(INTERNAL_ERROR_SYMBOL_KEY)] === true ||
error.name === 'InternalError')
)
Expand Down
2 changes: 1 addition & 1 deletion src/errors/PublicNonRecoverableError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export class PublicNonRecoverableError<T = ErrorDetails> extends Error {

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

0 comments on commit b565e97

Please sign in to comment.