UNPKG

node-universe

Version:

基于 Nodejs 环境的一款微服务框架,原理来自于宇宙中的恒星,行星,卫星等系统。

11 lines (10 loc) 371 B
import { GenericObject } from '..'; import { CallingOptions } from '../context'; export type ServiceAction = <T = Promise<any>, P extends GenericObject = GenericObject>(params?: P, options?: CallingOptions) => T; export interface ServiceActions { [name: string]: ServiceAction; } export interface ServiceSearchObj { name: string; version?: string | number; }