Skip to content

fix: add types to package.json exports for TypeScript resolution#5

Open
oscar370 wants to merge 1 commit into
faassen:mainfrom
oscar370:fix/ts-exports-resolution
Open

fix: add types to package.json exports for TypeScript resolution#5
oscar370 wants to merge 1 commit into
faassen:mainfrom
oscar370:fix/ts-exports-resolution

Conversation

@oscar370
Copy link
Copy Markdown

This PR fixes a TypeScript resolution issue where modern project configurations (moduleResolution: "node16" / "nodenext" / "bundler") cannot find the declaration files for solid-dexie, resulting in an implicit any type error.

Added "types": "./dist/index.d.ts" as the first key inside the "exports"."." block. This ensures TypeScript resolves the typings correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant