@bsv/spv-wallet-js-client
Version:
TypeScript library for connecting to a SPV Wallet server
15 lines (14 loc) • 370 B
TypeScript
export interface RawEvent {
type: string;
content: any;
}
export interface WebhookOptions {
tokenHeader?: string;
tokenValue?: string;
}
export interface WebhookHttpHandler {
getHeader(name: string): string;
handleResponse(status: number, body?: any): void;
getBody(): RawEvent[];
}
export type EventHandler<T> = (event: T) => Promise<void>;