import { Func, isFunc } from './Func'; export type Message = string | Func; export const ofMessage = (g: Message, ...params: Args[]): string => (isFunc(g) ? g(...params) : g);