File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,17 +78,17 @@ graph LR
7878| ` Double ` | ` number ` | ` f64 ` |
7979| ` Bool ` | ` boolean ` | ` i32 ` |
8080| ` Void ` | ` void ` | - |
81- | ` String ` | ` string ` | ` i32 ` (pointer)|
8281
8382### Complex Types
8483
8584| Swift Type | TypeScript Type | Semantics | Status |
8685| :-----------| :----------------| :----------| :-------|
86+ | ` String ` | ` string ` | Copy | ✅ |
8787| ` @JS class ` | ` interface ` + constructor | Reference (pointer) | ✅ |
88- | ` @JS struct ` | ` interface ` | Copy (serialized ) | ✅ |
88+ | ` @JS struct ` | ` interface ` | Copy (fields via stacks ) | ✅ |
8989| ` @JS enum ` (case) | const object + tag type | Copy (integer) | ✅ |
9090| ` @JS enum ` (raw value) | const object + tag type | Copy (raw value) | ✅ |
91- | ` @JS enum ` (associated) | discriminated union | Copy (serialized ) | ✅ |
91+ | ` @JS enum ` (associated) | discriminated union | Copy (fields via stacks ) | ✅ |
9292| ` @JS protocol ` | ` interface ` | Reference (wrapper) | ✅ |
9393| ` Optional<T> ` | ` T \| null ` | Depends on T | ✅ |
9494| ` (T) -> U ` | ` (arg: T) => U ` | Reference (boxed) | ✅ |
You can’t perform that action at this time.
0 commit comments