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

            Line data    Source code
       1              : import type { FactValue, ServerFact } from './serverFact'
       2              : 
       3              : export type BackendTicket = `BE-${number}`
       4              : 
       5              : /**
       6              :  * Interim bridge for a server fact the API does not emit yet. It expires with
       7              :  * the ticket: CI fails once the backend ticket closes, until the shipped field
       8              :  * is rendered and the wrapper deleted. See ADR-API-SERVER-FACTS-0042.
       9              :  *
      10              :  * `Field` is inferred from the gate it fills; without one it widens to
      11              :  * `string`, which no gate accepts.
      12              :  */
      13            7 : export function pendingServerFact<Field extends string, T>(
      14              :   _ticket: BackendTicket,
      15              :   value: T
      16              : ): ServerFact<Field, FactValue<T>> {
      17            7 :   return value as ServerFact<Field, FactValue<T>>
      18              : }
        

Generated by: LCOV version 2.0-1