UNPKG

@thisisagile/easy

Version:

Straightforward library for building domain-driven microservice architectures

1 lines 560 B
{"version":3,"sources":["../src/http/Response.ts"],"sourcesContent":["import { HttpStatus } from './HttpStatus';\nimport type { RestResult } from './RestResult';\nimport { isA } from '../types/IsA';\nimport { TypeGuard } from '../types/TypeGuard';\n\nexport type Response = {\n status: HttpStatus;\n headers?: { [key: string]: any };\n body: RestResult;\n};\n\nexport const isResponse: TypeGuard<Response> = (r?: unknown): r is Response => isA<Response>(r, 'status', 'body');\n"],"mappings":";;;;;AAWO,IAAM,aAAkC,CAAC,MAA+B,IAAc,GAAG,UAAU,MAAM;","names":[]}