Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support modern TypeScript moduleResolution #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IlyaSemenov
Copy link

With modern Typescript setup ("moduleResolution" set to "Node16" or "Bundler"), types don't work:

Could not find a declaration file for module '@solana/buffer-layout-utils'. '/.../node_modules/.pnpm/@Solana[email protected]/node_modules/@solana/buffer-layout-utils/lib/esm/index.mjs' implicitly has an 'any' type.
There are types at '/.../node_modules/@solana/buffer-layout-utils/lib/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@solana/buffer-layout-utils' library may need to update its package.json or typings.ts(7016)

The PR adds a proper types exports section.

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