You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.3 KiB
25 lines
1.3 KiB
// Generated by dts-bundle v0.7.3
|
|
|
|
declare module '@noderun/hapi-router' {
|
|
class routePlugin {
|
|
name: string;
|
|
version: string;
|
|
register(server: any, opts: any): void;
|
|
registerRoute(server: any, sourceDir: any, prefix: any, auth: any, type: any): any[];
|
|
}
|
|
const plugin: routePlugin;
|
|
export { plugin };
|
|
export * from "@noderun/hapi-router/util/decorators";
|
|
}
|
|
|
|
declare module '@noderun/hapi-router/util/decorators' {
|
|
type TMethod = "GET" | "POST" | "PUT" | "DELETE";
|
|
export function method(opts?: TMethod | Array<TMethod>): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
export function route(route?: string): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
export function config(options: Object): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
export function auth(isAuth?: boolean | "try" | "required" | "optional"): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
export function validate(validate: Object): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
export function swagger(desc: any, notes: any, tags: any): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
|
export {};
|
|
}
|
|
|
|
|