UNPKG

@thisisagile/easy

Version:

Straightforward library for building domain-driven microservice architectures

6 lines (3 loc) 169 B
import { isA } from './IsA'; export type Indexed<T> = T & { index: number }; export const isIndexed = <T>(u: unknown): u is Indexed<T> => isA<Indexed<T>>(u, 'index');