Skip to content

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

Open
kylemcd wants to merge 1 commit into
jsonnext:mainfrom
kylemcd:main
Open

fix: type issue where barrel exported functions could not be imported without a type error#160
kylemcd wants to merge 1 commit into
jsonnext:mainfrom
kylemcd:main

Conversation

@kylemcd

@kylemcd kylemcd commented Jul 28, 2025

Copy link
Copy Markdown

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

@changeset-bot

changeset-bot Bot commented Jul 28, 2025

Copy link
Copy Markdown

🦋 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

@netlify

netlify Bot commented Jul 28, 2025

Copy link
Copy Markdown

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.

@kylemcd

kylemcd commented Aug 11, 2025

Copy link
Copy Markdown
Author

@acao Could I get a review on this when you get a chance? Should be an easy merge.

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