Skip to main content

DerivedVariable

A URL variable computed from control values with a lookup table, for feeds whose file names combine several choices. The key is the values of from, in order, joined with |, such as day|false.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { DerivedVariable } from "@mapcairn/core";

interface DerivedVariable

Properties​

from​

readonly from: readonly string[];

The ids of the controls whose values are joined, in order, to make the lookup key.

id​

readonly id: string;

The variable name used in templates.

table​

readonly table: Readonly<Record<string, string>>;

Maps each joined key, such as day|false, to the value the variable takes.

Source: packages/core/src/layers/definition.ts:189