For example, the init function is seen to have a string & number type which TypeScript does not support, leading to the type definition resulting in undefined:
Trying to use it results in an error:
Changing it to string | number will fix the type def.
For example, the
init
function is seen to have astring & number
type which TypeScript does not support, leading to the type definition resulting inundefined
:Trying to use it results in an error:
Changing it to
string | number
will fix the type def.