Skip to content

Commit 7309d97

Browse files
[skip ci] Mention @dynamicMemberLookup-based APIs
It's still up to the user to decide which approach to use.
1 parent d657069 commit 7309d97

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: Sources/JavaScriptKit/Documentation.docc/Articles/Importing-TypeScript-into-Swift.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ Learn how to leverage TypeScript definitions to create type-safe bindings for Ja
88
99
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.
1010

11-
The key benefits of this approach include:
11+
The key benefits of this approach over `@dynamicMemberLookup`-based APIs include:
1212

1313
- **Type Safety**: Catch errors at compile-time rather than runtime
1414
- **IDE Support**: Get autocompletion and documentation in your Swift editor
1515
- **Performance**: Eliminating dynamism allows us to optimize the glue code
1616

17+
If you prefer keeping your project simple, you can continue using `@dynamicMemberLookup`-based APIs.
18+
1719
## Getting Started
1820

1921
### Step 1: Configure Your Package

0 commit comments

Comments
 (0)