export function typed(name: string, types: string, arg: T) : T { // TODO: implement typed-function for real if (types === '__infer__') { console.error('__infer__ should be replaced with runtime type information by the TypeScript plugin') } console.log(`TYPED-FUNCTION: Creating function "${name}" with types ${types}`) return arg }