@thisisagile/easy-service
Version:
Straightforward library for building domain-driven microservice architectures
10 lines (9 loc) • 321 B
TypeScript
import { Resource } from './Resource';
import { Service } from './Service';
import { Func } from '@thisisagile/easy';
export type Handler = Func<void, any>;
export interface AppProvider {
use: (h: Handler) => void;
route: (s: Service, r: Resource) => void;
listen: (port: number, message?: string) => void;
}