style: fix linting issues met Prettier

This commit is contained in:
Lint Action 2025-04-19 14:54:25 +00:00
parent f7029ad25b
commit 12178e8469
9 changed files with 23 additions and 15 deletions

View file

@ -1,4 +1,4 @@
import { HasStatusCode } from "./has-status-code";
import { HasStatusCode } from './has-status-code';
/**
* Exceptions which are associated with a HTTP error code.

View file

@ -1,5 +1,5 @@
export interface HasStatusCode {
status: number
status: number;
}
export function hasStatusCode(err: unknown): err is HasStatusCode {
return typeof err === 'object' && err !== null && 'status' in err && typeof (err as HasStatusCode)?.status === 'number';