Skip to content

TS2Swift: treat callable exported consts as functions#652

Merged
kateinoigakukun merged 3 commits intomainfrom
katei/32f9-ts2swift-treat-c
Feb 18, 2026
Merged

TS2Swift: treat callable exported consts as functions#652
kateinoigakukun merged 3 commits intomainfrom
katei/32f9-ts2swift-treat-c

Conversation

@kateinoigakukun
Copy link
Member

Overview

1. Emit @JSFunction for exported const bindings whose types have call signatures, keeping non-callable exports and let/var bindings as @JSGetter.
2. Add a callable-const fixture (non-Promise) and refresh TS2Swift snapshots to cover the new behavior.

Testing

  • npm -C Plugins/BridgeJS/Sources/TS2Swift/JavaScript test -- --update

@kateinoigakukun kateinoigakukun merged commit 30cf39a into main Feb 18, 2026
12 checks passed
@kateinoigakukun kateinoigakukun deleted the katei/32f9-ts2swift-treat-c branch February 18, 2026 12:02
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

Comments