math.gl icon indicating copy to clipboard operation
math.gl copied to clipboard

"types" field in package.json should point to a `.d.ts` file.

Open latin-1 opened this issue 3 years ago • 3 comments

-  "types": "src/index.ts",
+  "types": "dist/index.d.ts",

tsc will do type-checking on that file regardless of skipLibCheck if that's a pure .ts file (not a .d.ts file), which may result in compile errors.

(e.g., we set importsNotUsedAsValues to "error" in our project and tsc will complain about the .ts files inside node_modules/@math.gl/core)

latin-1 avatar Mar 06 '22 14:03 latin-1