Commit 5ae7029
committed
fix(examples): use top-level await for async functions
Replace unawaited function calls with top-level await to fix oxlint
no-floating-promises errors. This ensures examples run to completion
and any errors are properly surfaced.
- examples/index.ts: await quickstart()
- examples/openai-integration.ts: await openaiIntegration()
- examples/ai-sdk-integration.ts: await aiSdkIntegration()
- examples/human-in-the-loop.ts: await humanInTheLoopExample()
- examples/meta-tools.ts: await main() in import.meta.main guard1 parent b196d6d commit 5ae7029
File tree
5 files changed
+5
-5
lines changed- examples
5 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
0 commit comments