error Unsafe argument of type any[]
assigned to a parameter of type Type<any>[]
#549
Labels
enhancement
New feature or request
Issue
TypeScript types description for
init
function generated by Candid are not descriptive or generic enough to comply with linters.For example, the generated types of the ICP ledger:
Have to be implemented as following:
But lead to following linter error when examinated by eslint:
(line 52 being the
encode(init...)
usage)Liwise, my editor complains as well:
The text was updated successfully, but these errors were encountered: