/opt/canhelp/node_modules/svix/src
Edit: /opt/canhelp/node_modules/svix/src/util.ts (522B)
export interface PostOptions {
idempotencyKey?: string;
}
export class ApiException
extends Error {
public headers: Record = {};
public constructor(
public code: number,
public body: T,
headers: Headers
) {
super(`HTTP-Code: ${code}\nHeaders: ${JSON.stringify(headers)}`);
headers.forEach((value: string, name: string) => {
this.headers[name] = value;
});
}
}
export type XOR =
| (T & { [K in keyof U]?: never })
| (U & { [K in keyof T]?: never });