public-google-sheets-parser
public-google-sheets-parser copied to clipboard
"TS2351: This expression is not constructable"
src/scratchpad.ts:4:20 - error TS2351: This expression is not constructable.
Type 'typeof import("/Users/jeff/Work/@home/fyi-migration/node_modules/public-google-sheets-parser/@types/index")' has no construct signatures.
4 const parser = new PublicGoogleSheetsParser(process.env.GOOGLE_DEFAULT_SHEET, { sheetName: 'talks' });
Still have to figure out where exactly the issue is, but using this library from a TS 5.4 ESM project generates some immediate errors on trying to instantiate the class. Curiously, it does work, but the error suggests something in the type definitions might be a bit off. I'll be investigating further this weekend when I have a chance.