130
rated 0 times
[
133]
[
3]
/ answers: 1 / hits: 21493
/ 7 Years ago, wed, march 22, 2017, 12:00:00
I didn't find a declaration file for 'google-spreadsheet' so I'm trying to create one by myself:
in typings -> modules, I've added a new folder named google-spreadsheet, and there I've added a new file named index.d.ts which has the following content:
export class GoogleSpreadsheet {
}
In the client file I have this:
import * as GoogleSpreadsheet from 'google-spreadsheet';
But 'google-spreadsheet' is marked with red, saying:
TS2307 Cannot find module 'google-spreadsheet'.
BTW I've NPM-installed 'google-spreadsheet' and it works JavaScriptly. Only the TypeScript bothers me here.
Any ideas how to solve that?
More From » node.js