Importing
import * as customID from "nanoid";
var newID: string = ""
const alphaNums: string = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
function createNewID() {
newID = customID(alphaNums, 10)
console.log(newID)
}
Error
newID = customID(alphaNums, 10)
Issue with callable function.
Type 'typeof import("/Users/../API/functions/node_modules/nanoid/index")' does not support call signatures.