MyRepo-Ums/node_modules/@sigstore/sign/dist/external/error.d.ts

14 lines
408 B
TypeScript
Raw Normal View History

2024-01-19 10:09:11 +00:00
import fetch from 'make-fetch-happen';
type Response = Awaited<ReturnType<typeof fetch>>;
export declare class HTTPError extends Error {
statusCode: number;
location?: string;
constructor({ status, message, location, }: {
status: number;
message: string;
location?: string;
});
}
export declare const checkStatus: (response: Response) => Promise<Response>;
export {};