export function $reflect(arg: T, types?: string) : T { // TODO: implement typed-function for real if (!types) { console.error('types should be resolved 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 }