(
clientToolWithInjector: FrontendToolConfig & {
injector: Injector;
},
)
| 261 | } |
| 262 | |
| 263 | #bindClientTool( |
| 264 | clientToolWithInjector: FrontendToolConfig & { |
| 265 | injector: Injector; |
| 266 | }, |
| 267 | ): FrontendTool { |
| 268 | const { injector, handler, ...frontendCandidate } = clientToolWithInjector; |
| 269 | |
| 270 | return { |
| 271 | ...frontendCandidate, |
| 272 | handler: (args, context) => |
| 273 | runInInjectionContext(injector, () => handler(args, context)), |
| 274 | }; |
| 275 | } |
| 276 | |
| 277 | addFrontendTool( |
| 278 | clientToolWithInjector: FrontendToolConfig & { |
no test coverage detected