Skip to content

fix: type issue where barrel exported functions could not be imported without a type error #160

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

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

Conversation

kylemcd
Copy link

@kylemcd kylemcd commented Jul 28, 2025

Importing certain functions, for example stateExtensions, would result in a type error:
SCR-20250728-lbde

This issue seemed to effect any export from ./src/index.ts that was barrel exported. This PR updates any barrel exported values within ./src/index.ts to be named exports instead.

This fixes the type issue:
SCR-20250728-ldjj

Copy link

changeset-bot bot commented Jul 28, 2025

🦋 Changeset detected

Latest commit: 8ef8325

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
codemirror-json-schema Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Jul 28, 2025

Deploy Preview for codemirror-json-schema ready!

Name Link
🔨 Latest commit 8ef8325
🔍 Latest deploy log https://app.netlify.com/projects/codemirror-json-schema/deploys/6887b32d70061b0008ab5a5d
😎 Deploy Preview https://deploy-preview-160--codemirror-json-schema.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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