FRE-709: Document duplicate recovery wake - FRE-635 already recovered via FRE-708
This commit is contained in:
23
node_modules/svix/src/util.ts
generated
vendored
Normal file
23
node_modules/svix/src/util.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
export interface PostOptions {
|
||||
idempotencyKey?: string;
|
||||
}
|
||||
|
||||
export class ApiException<T> extends Error {
|
||||
public headers: Record<string, string> = {};
|
||||
|
||||
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, U> =
|
||||
| (T & { [K in keyof U]?: never })
|
||||
| (U & { [K in keyof T]?: never });
|
||||
Reference in New Issue
Block a user