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

Typescript Transpilation #38

Merged
merged 13 commits into from
Dec 8, 2023
Merged

Typescript Transpilation #38

merged 13 commits into from
Dec 8, 2023

Conversation

elliotBraem
Copy link
Contributor

Allows developers to write widget code in Typescript. Uses sucrase to transpiles to valid BOS Lang.

  • After transpile, there is big white space where the type + interface definitions used to be; while it doesn't really matter during development as these files are in /build, I think we should do some formatting before code gets deployed
  • This enables Typescript so it is helpful in your IDE, but beyond that, any interfaces or types are discarded during the build process. I'd like them to be extracted and deployed on chain so they can be used by other developers and for other purposes. We could extract and use them to create JSON Schema.

sekaiking
sekaiking previously approved these changes Dec 7, 2023
Copy link
Collaborator

@sekaiking sekaiking left a comment

Choose a reason for hiding this comment

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

It's looks good to me, yeah the spaces are weird but I don't think they'll cause a problem. Typescripts as onchain types will be amazing :)

@sekaiking sekaiking merged commit 65b9963 into main Dec 8, 2023
1 of 2 checks passed
@sekaiking sekaiking linked an issue Dec 8, 2023 that may be closed by this pull request
@sekaiking sekaiking deleted the feat/typescript-transpile branch December 8, 2023 00:37
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.

Typescript transpilation
2 participants