LCOV - code coverage report
Current view: top level - src/platform/extensions/services - extensionServiceAccess.ts Coverage Total Hit
Test: ComfyUI E2E Coverage Lines: 100.0 % 3 3
Test Date: 2026-11-17 04:17:53

            Line data    Source code
       1              : import type { ComfyExtension } from '@/types/comfy'
       2              : 
       3              : interface ExtensionServiceAccess {
       4              :   invokeExtensions(
       5              :     method: 'onNodeOutputsUpdated',
       6              :     ...args: Parameters<NonNullable<ComfyExtension['onNodeOutputsUpdated']>>
       7              :   ): unknown
       8              : }
       9              : 
      10              : /** `useExtensionService` for `queueStore`, which `extensionService` reaches through the widget stores. */
      11         2356 : export let useExtensionServiceAccess: () => ExtensionServiceAccess
      12              : 
      13              : /** Called by `extensionService` when it loads. */
      14         2356 : export function provideExtensionService(
      15              :   useService: () => ExtensionServiceAccess
      16              : ): void {
      17         2356 :   useExtensionServiceAccess = useService
      18              : }
        

Generated by: LCOV version 2.0-1