@lunit/insight-viewer
Version:
Based on the cornerstone library, it provides several components for handling Dicom images
18 lines (17 loc) • 500 B
TypeScript
import { ViewerError } from '../../types';
/**
* ky HTTPError
* https://github.com/sindresorhus/ky/blob/main/source/errors/HTTPError.ts
* { error: { name: 'HTTPError', options, request, response, message, stack }
*/
interface HTTPError {
error: {
response: {
status: number;
};
message: string;
};
}
export declare function normalizeError(e: Error | HTTPError | unknown): ViewerError;
export declare const noop: () => void;
export {};