Added extracting of templated params from `params`
Close #34
Hi! This pull request solves the problem of autoinferring parameters for the `params` function, but with two edge cases:
1. If nested templates are used (see example in test file), we can't be sure which of the parameter names will be used. Therefore, for this case, it remains possible to set parameters in the function.
2. The case of using functions as parameters, for example, the `count` function, is not processed here. This requires an extension of the return type signature of the `TranslationFunction` function (even if it will be readable), and will likely require updating the types of all utilities.
合并状态:未合并 关闭于 2023-07-10 2 条评论