Skip to content

IndexedValueEnvBinding ​

An indexed env family whose entries are single values.

text
SERVER_COUNT=2  SERVER_0=a.example.com  SERVER_1=b.example.com

reads as ['a.example.com', 'b.example.com'].

Signatures ​

ts
interface IndexedValueEnvBinding {}

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 ​

Not available on a value family; see IndexedRecordEnvBinding.

ts
fields?: undefined;

value ​

Variable template for one entry, with {index} standing for the zero-based index.

ts
value: string;

See Also ​

Released under the MIT License.