Type Alias InferOptionalNamedWaitablesAndBindingValueTypes<NamedDependenciesT>

InferOptionalNamedWaitablesAndBindingValueTypes<NamedDependenciesT>: {
    [KeyT in keyof NamedDependenciesT]: NamedDependenciesT[KeyT] extends Waitable<any> | undefined
        ? InferWaitableSuccessType<NamedDependenciesT[KeyT]> | undefined
        : NamedDependenciesT[KeyT] extends ReadonlyBinding
            ? InferBindingGetType<NamedDependenciesT[KeyT]>
            : NamedDependenciesT[KeyT] extends ReadonlyBinding | undefined
                ? InferBindingGetType<NamedDependenciesT[KeyT]> | undefined
                : NamedDependenciesT[KeyT]
}

Extracts the value types from waitables and bindings

Type Parameters

  • NamedDependenciesT extends Record<string, Waitable<any> | ReadonlyBinding | undefined>