export function $reflect(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(`INFER: Creating function with types ${types}`) // TODO: here we can now turn the inputs into a real typed-function with a signature return arg }