typedrequest-interfaces/ts/index.ts
2020-02-10 21:08:52 +00:00

19 lines
335 B
TypeScript

export interface ITypedRequest {
method: string;
request: object;
response: object;
error?: { text: string; data: any };
retry?: {
waitForMs: number;
reason: string;
};
}
export type implementsTR<T, U extends T> = {};
export interface IBroadCastEvent<T> {
name: string;
uniqueEventId: string;
payload: T;
}