I'm trying to understand what is the way to use an external, not provided by the module, .d.ts?
I'm trying to use xlsx
which doesn't have type definitions and wrap it with the @types/xlsx
.
I npm install
ed them both and figured I should add a reference to the typings/index.d.ts
as follows: /// <reference path="../node_modules/@types/xlsx/index.d.ts" />
Now I find it hard to understand what do I need to import trying to use the xlsx
with the type definition provided?
And maybe I simply got it all wrong and there's a simpler way.