/* eslint-disable prettier/prettier */ import type { BindingArrayDependencies } from './binding-dependencies'; import type { InferBindingGetType } from './inference'; import type { ReadonlyBinding } from './readonly-binding'; /** Infers the value types from bindings arrays */ export type InferBindingsArrayValueTypes = { [KeyT in keyof BindingsArrayT]: BindingsArrayT[KeyT] extends ReadonlyBinding ? InferBindingGetType : BindingsArrayT[KeyT] extends ReadonlyBinding | undefined ? InferBindingGetType | undefined : BindingsArrayT[KeyT]; };