Kuechlin / mantine-data-grid

mantine data grid
MIT License
176 stars 29 forks source link

add "types" to "exports" #178

Open UnsungHero97 opened 11 months ago

UnsungHero97 commented 11 months ago

Description

Setting "moduleResolution": "bundler" in tsconfig.json breaks with this error:

Type error: Could not find a declaration file for module 'mantine-data-grid'. '/path/to/project/node_modules/mantine-data-grid/dist/mantine-data-grid.js' implicitly has an 'any' type.
  There are types at '/path/to/project/node_modules/mantine-data-grid/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'mantine-data-grid' library may need to update its package.json or typings.

Adding "types": "./dist/index.d.ts" fixes this error.