Summary of the changes / Why this is an improvement
I got this error while integrating this library in crate-gc-admin:
Could not find a declaration file for module '@cratedb/cratedb-sqlparse'.
'crate-gc-admin/node_modules/@cratedb/cratedb-sqlparse/dist/sqlparse.js' implicitly has an 'any' type.
There are types at 'crate-gc-admin/node_modules/@cratedb/cratedb-sqlparse/dist/index.d.ts',
but this result could not be resolved when respecting package.json "exports".
The '@cratedb/cratedb-sqlparse' library may need to update its package.json or typings.
Basically, for react with typescript projects, the export in the package.json is "explicit", so even if types are declared here, it is necessary to declare them a second time inside the export. I have also noticed that this has been done also for crate-gc-admin.
Summary of the changes / Why this is an improvement
I got this error while integrating this library in
crate-gc-admin
:Basically, for react with typescript projects, the export in the
package.json
is "explicit", so even if types are declared here, it is necessary to declare them a second time inside theexport
. I have also noticed that this has been done also forcrate-gc-admin
.Checklist