接口 Runtime<ContextType>

interface Runtime<ContextType> {
    context?: ContextType;
    signal?: AbortSignal;
    store?: BaseStore;
    writer?: ((chunk) => void);
}

类型参数

  • ContextType extends Record<string, unknown> = Record<string, unknown>

属性

context?: ContextType
signal?: AbortSignal
store?: BaseStore
writer?: ((chunk) => void)

类型声明

    • (chunk): void
    • 参数

      • chunk: unknown

      返回 void