export function infer(arg: T) : T { console.error('infer should be replace with runtime type information by a magic TypeScript plugin') return arg }