MyRepo-Ums/node_modules/@sigstore/tuf/dist/error.d.ts
2024-01-19 11:09:11 +01:00

12 lines
370 B
TypeScript

type TUFErrorCode = 'TUF_FIND_TARGET_ERROR' | 'TUF_REFRESH_METADATA_ERROR' | 'TUF_DOWNLOAD_TARGET_ERROR' | 'TUF_READ_TARGET_ERROR';
export declare class TUFError extends Error {
code: TUFErrorCode;
cause: any | undefined;
constructor({ code, message, cause, }: {
code: TUFErrorCode;
message: string;
cause?: any;
});
}
export {};