Open ug1989 opened 11 months ago
+1
Hi @TonyGermaneri, I love the module but just like @ug1989 I can't seem to import it in my project because of a typing issue.
Hi, apologies for not responding sooner — I'll look into this tomorrow
Are there any updates?
For temporary solution:
canvas-datagrid.d.ts
with
declare module 'canvas-datagrid';
tsconfig.json
{ "compilerOptions: ..., "include": [ "path/to/canvas-datagrid.d.ts" ], }
import canvasDatagrid from 'canvas-datagrid';
Sorry for being so inattentive. Life can suck you away from projects you love. Thanks for the temp solution @kent-leow
Expected behavior and actual behavior.
typescript project can read types correctly
Steps to reproduce the problem.
In any ts project, yarn add canvas-datagrid && import canvasDatagrid from 'canvas-datagrid' show the error
Specifications like the version of the project, operating system, or hardware.
--
The way I tried locally
When I edit
node_modules/canvas-datagrid/dist/types.d.ts
file with addexport = canvasDatagrid;
, vscode can read the type definition correctly