UNPKG

@thisisagile/easy

Version:

Straightforward library for building domain-driven microservice architectures

11 lines (8 loc) 231 B
import { isA } from './IsA'; export type Currency = { id: string; name: string; digits: number; code: string; }; export const isCurrency = (c?: unknown): c is Currency => isA<Currency>(c, 'id', 'name', 'digits', 'code');