UNPKG

@thisisagile/easy

Version:

Straightforward library for building domain-driven microservice architectures

10 lines (9 loc) 303 B
import { Text } from './Text'; import { TypeGuard } from './TypeGuard'; export type Result = { message: string; location?: string; domain?: string; }; export declare const toResult: (message: Text, location?: Text, domain?: Text) => Result; export declare const isResult: TypeGuard<Result>;