@spailybot/moleculer-auto-openapi
Version:
Generate openapi scheme for moleculer
14 lines (13 loc) • 795 B
TypeScript
import { Service, ServiceSchema } from 'moleculer';
import { rawHttpMethod, rawHttpMethodFromMWeb } from './constants.js';
export declare const getServiceName: (svc: Service<any> | ServiceSchema<any>) => string;
export declare const matchAll: (regex: RegExp, str: string) => Array<Array<string>>;
/**
* @param currentPath
* @returns {string}
*/
export declare const normalizePath: (currentPath?: string) => string;
export declare const isRawHttpMethodFromMWeb: (value: string) => value is rawHttpMethodFromMWeb;
export declare const isRawHttpMethod: (value: string) => value is rawHttpMethod;
export declare function getAlphabeticSorter(): (a: string, b: string) => number;
export declare function getAlphabeticSorter(key: string): (a: Record<string, any>, b: Record<string, any>) => number;