UNPKG

@thisisagile/easy

Version:

Straightforward library for building domain-driven microservice architectures

4 lines (2 loc) 174 B
export type Func<T, Args = unknown> = (...args: Args[]) => T; export const isFunc = <T, Args>(o?: unknown): o is (...params: Args[]) => T => !!o && typeof o === 'function';