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

fix: updated some typescript exports #5102

Closed

Conversation

PaulRill00
Copy link
Contributor

@PaulRill00 PaulRill00 commented May 10, 2023

Since the latest change, some of the typescript definitions are missing, therefore I re-added some of the typescript exports.

  • Component
  • ComponentView
  • Components
  • ComponentManager

Besides that, there was an issue with the Editor#setZoom requiring a string, whilst actually needing a number or string. Therefore I updated the type for that as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Im not sure if the changes in both dist/ and package.json are required, I can revert these if needed.

Choose a reason for hiding this comment

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

Traits, Trait and TraitView would be helpful as well. Im still going through the exported types, but seems like much more needs be exported: Pages, Page, Frames, Canvas, Dragger, etc.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks @PaulRill00 🙏
Yeah correct, everything inside dist/ shouldn't be committed in PRs as it's all generated during build/publish (same as version in package.json). One day I'll pull that dir off from the repo 😅

I actually pushed some commits containing similar changes (exporting models mainly) but feel free to update with other exports

@PaulRill00
Copy link
Contributor Author

I've opened a new PR in favour of a cleaner commit history here: #5106

@PaulRill00 PaulRill00 closed this May 11, 2023
@PaulRill00 PaulRill00 deleted the fixed-some-typescript-issues branch May 11, 2023 11:31
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.

None yet

3 participants