Skip to content

[TYPES] Added bundlerType to VisWidget #3063

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: master
Choose a base branch
from
Open

Conversation

GermanBluefox
Copy link
Contributor

Added typing for visWidgets

@GermanBluefox GermanBluefox requested a review from Copilot May 19, 2025 15:27
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new bundlerType field to the visWidgets schema for typing support.

  • Introduces bundlerType with a description, string type, and an enum of allowed values.
  • Restricts bundler type to "module" per current support.
Comments suppressed due to low confidence (1)

schemas/io-package.json:1542

  • [nitpick] The description phrasing ‘let it empty’ is unclear and grammatically awkward. Consider changing it to ‘leave it empty’ and clarify whether the property should be omitted or set to an empty string for JavaScript widgets.
"description": "Bundler type of the widget set. Currently only 'module' is supported, if the widget was written with TypeScript. If the widget was written with JavaScript, let it empty.",

"description": "Bundler type of the widget set. Currently only 'module' is supported, if the widget was written with TypeScript. If the widget was written with JavaScript, let it empty.",
"type": "string",
"enum": [
"module"
Copy link
Preview

Copilot AI May 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The enum currently only allows "module", but the description implies JavaScript widgets should use an empty value. You may need to include an empty string in the enum (e.g., ["module", ""]) or clarify that omitting the property indicates JavaScript widgets.

Suggested change
"module"
"module",
""

Copilot uses AI. Check for mistakes.

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.

2 participants