typedrequest-interfaces/ts/index.ts
2020-02-20 22:01:58 +00:00

19 lines
331 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 ITypedEvent<T> {
name: string;
uniqueEventId: string;
payload: T;
}