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

Re-export HTML type in TokamakDOM #275

Merged
merged 2 commits into from
Sep 23, 2020

Conversation

kateinoigakukun
Copy link
Contributor

@kateinoigakukun kateinoigakukun commented Sep 14, 2020

HTML should be available when targeting dynamic HTML. Without this symlink, we need to import only HTML to avoid protocol conformance conflict.

e.g. https://github.com/kateinoigakukun/swiftwasm-pad/blob/9dc42e0ac6c37f6a408fdf5cbd37358b5eebb070/Frontend/Sources/SwiftWasmPad/App.swift#L4

Copy link
Collaborator

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

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

Wouldn't it be more maintainable if TokamakDOM re-exported the symbol with public typealias HTML = TokamakStaticHTML.HTML, for example in DynamicHTML.swift or wherever is more suitable?

@kateinoigakukun
Copy link
Contributor Author

@MaxDesiatov As far as I understand, TokamakDOM and TokamakStaticHTML should be mutually exclusive. Is this incorrect understanding?

@MaxDesiatov
Copy link
Collaborator

They aren't mutually exclusive, TokamakDOM depends on TokamakStaticHTML and extends it to avoid duplication.

carson-katri
carson-katri previously approved these changes Sep 23, 2020
@MaxDesiatov MaxDesiatov added the bug Something isn't working label Sep 23, 2020
@MaxDesiatov MaxDesiatov changed the title Symlink HTML.swift to TokamakDOM Re-export HTML type in TokamakDOM Sep 23, 2020
@MaxDesiatov MaxDesiatov changed the title Re-export HTML type in TokamakDOM Re-export HTML type in TokamakDOM Sep 23, 2020
MaxDesiatov
MaxDesiatov previously approved these changes Sep 23, 2020
Copy link
Collaborator

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

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

Awesome, thank you!

@MaxDesiatov
Copy link
Collaborator

@kateinoigakukun I've sent you an invitation to the Tokamak team, feel free to merge 🙂

@kateinoigakukun
Copy link
Contributor Author

Please merge this PR 🙏 I don't have commit permission 🤔

@MaxDesiatov
Copy link
Collaborator

Sorry about that, I've updated the permissions, feel free to merge and let me know if there are any problems.

@kateinoigakukun kateinoigakukun merged commit 278201c into TokamakUI:main Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

3 participants