Skip to content

TS2Swift: emit static properties as static members#653

Merged
kateinoigakukun merged 1 commit intomainfrom
katei/4559-ts2swift-emit-st
Feb 18, 2026
Merged

TS2Swift: emit static properties as static members#653
kateinoigakukun merged 1 commit intomainfrom
katei/4559-ts2swift-emit-st

Conversation

@kateinoigakukun
Copy link
Member

Overview

  • Render TS static properties as static Swift getters/setters so constructor/global members aren't emitted as instance accessors.
  • Add StaticProperty.d.ts fixture and refresh snapshots to cover static field emission.
  • Note: current JSGetter/JSSetter macros reject static members; this aligns TS2Swift output but will need the macro side to permit static properties.

Testing

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

@kateinoigakukun kateinoigakukun merged commit 9c092f6 into main Feb 18, 2026
12 checks passed
@kateinoigakukun kateinoigakukun deleted the katei/4559-ts2swift-emit-st branch February 18, 2026 12:05
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