Function cxArray

  • Creates array-valued context entry definer.

    The entry value is a read-only array of assets.

    The entry value is evaluated at most once per context.

    Type Parameters

    • TElement

      Array element type. The same as entry value asset type.

    Parameters

    • byDefault: {
          byDefault?(this, target) => undefined | null | readonly TElement[];
      } = {}

      Creates default entry value. Accepts entry definition target as the only parameter. Empty array will be used as default value when omitted.

    Returns Definer<readonly TElement[], TElement>

    New context entry definer.

Generated using TypeDoc