@3kles/3kles-coreion
Version:
3Kles Generic Ion Service
31 lines (26 loc) • 608 B
text/typescript
import { ServiceParams } from "@3kles/3kles-corebe";
export interface IMIRequest {
path: string;
method: string;
body?: any;
contentType?: string;
params?: { [key: string]: any };
query?: { [key: string]: any };
cookie?: string;
authorization?: string;
}
export interface IIonRoute {
middleware?: string;
routingKey?: string;
routes: ServiceParams;
}
export interface IIonMessage {
key: string;
data?: any;
params?: { [key: string]: any };
query?: { [key: string]: any };
}
export interface IError {
status: number;
message?: string;
}