Skip to content

Commit b25179c

Browse files
committed
Updates
1 parent 70217fc commit b25179c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Plugins/BridgeJS/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) ||

0 commit comments

Comments
 (0)