We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Current JS interop system, JavaScriptKit, has two main issues:
Given the following interface:
// bridge.d.ts export interface CanvasContext { drawRect(x: number, y: number, width: number, height: number) => void; } // App.swift public struct App { let context: CanvasContext @ExposeToJS init(context: CanvasContext) { self.context = context } struct PointerEvent { let x: Int let y: Int let pointerId: Int } @ExposeToJS func feedPointerEvents(_ events: [PointerEvent]) { ... context.drawRect(...) } }
Then SwiftPM Build Plugin or standalone CLI tool should generate:
CanvasContext
App
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Motivation
Current JS interop system, JavaScriptKit, has two main issues:
High-level API
Given the following interface:
Then SwiftPM Build Plugin or standalone CLI tool should generate:
CanvasContext
to SwiftApp
methods to JS/TSBreakdown
Other Languages
The text was updated successfully, but these errors were encountered: