You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/JavaScriptKit/Documentation.docc/Articles/Importing-TypeScript-into-Swift.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,14 @@ Learn how to leverage TypeScript definitions to create type-safe bindings for Ja
8
8
9
9
BridgeJS enables seamless integration between Swift and JavaScript by automatically generating Swift bindings from TypeScript declaration files (`.d.ts`). This provides type-safe access to JavaScript APIs directly from your Swift code.
10
10
11
-
The key benefits of this approach include:
11
+
The key benefits of this approach over `@dynamicMemberLookup`-based APIs include:
12
12
13
13
-**Type Safety**: Catch errors at compile-time rather than runtime
14
14
-**IDE Support**: Get autocompletion and documentation in your Swift editor
15
15
-**Performance**: Eliminating dynamism allows us to optimize the glue code
16
16
17
+
If you prefer keeping your project simple, you can continue using `@dynamicMemberLookup`-based APIs.
0 commit comments