UNPKG

@ords/core

Version:

Microservice architecture with service proposals in nodejs and typescript

16 lines (15 loc) 544 B
import { ServiceRegistry } from './service-registry'; import { main } from './proposals'; export interface TryCatchHandler { (err: Error, res?: any, meta?: any): void; } export declare class ShortenAct { /** * Convert body output from act depending on the meta flag set */ static convertOutput(body: main.Packages, flag: any): any; /** * Perform try catch on acting */ static tryCatch(registry: ServiceRegistry, root: string, name: string, request: main.types.Request, handler: TryCatchHandler): void; }