Skip to content

IndexedRecordEnvBinding ​

An indexed env family whose entries are records, one variable per field.

text
CONFIG_COUNT=1  CONFIG_KEY_0=user.name  CONFIG_VALUE_0=Kaj

with fields: { key: 'CONFIG_KEY_{index}', value: 'CONFIG_VALUE_{index}' } reads as [{ key: 'user.name', value: 'Kaj' }].

Signatures ​

ts
interface IndexedRecordEnvBinding {}

Members ​

Properties ​

count ​

Variable holding how many entries the family declares, as a canonical non-negative integer. When it is unset the env source supplies nothing; 0 supplies an explicit empty list.

ts
count: string;

fields ​

One variable template per record field, each with {index} standing for the zero-based index. Every field is required for every declared entry.

ts
fields: Readonly<Record<string, string>>;

value ​

Not available on a record family; see IndexedValueEnvBinding.

ts
value?: undefined;

See Also ​

Released under the MIT License.