I am struggling with declaring the right type to a function parameter i use and i don't seem to understand the logic behind it please help.
The following situation:
const { U64 } = require("somepackage");
export const someFunct = function (
someParameter: any ( this is of type U64 )
){...}
If i replace any with U64 i get:
'U64' refers to a value, but is being used as a type here. Did you mean 'typeof U64'?
If i use someParameter: typeof U64 the parameter still says any if i hove over it.
What am i missing? How is this supposed to be done?