@3kles/3kles-coreion
Version:
3Kles Generic Ion Service
35 lines (34 loc) • 656 B
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;
}