26 lines
431 B
TypeScript
26 lines
431 B
TypeScript
export interface ITypedRequest {
|
|
method: string;
|
|
authInfo?: {
|
|
jwt: string;
|
|
};
|
|
serverData?: {
|
|
jwtData: any;
|
|
jwtValid: boolean;
|
|
};
|
|
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;
|
|
}
|