Add
export const $functions = {
TestFn: {
testFn: (context, target) => {
return target;
},
},
};
then try to use with
op original(@typeChangedFrom(Versions.v2, int32) a: string, b: string): void;
alias T = testFn(original, #["b", "a"]);
@route("/test")
op test is T;
T is just nothing(not sure exactly but op test has no parmaeters), no errors.
I think we need to ban defining those functions
Add
then try to use with
T is just nothing(not sure exactly but op test has no parmaeters), no errors.
I think we need to ban defining those functions