Function cxConstAsset

  • Creates constant context entry asset.

    Type Parameters

    • TAsset

      Context value asset type.

    Parameters

    • entry: CxEntry<unknown, TAsset>

      Target context entry.

    • value: undefined | null | TAsset

      Constant value asset, or null/undefined to not provide any assets.

    • Optional supply: Supply

      Asset supply. Removes the created asset once cut off.

    Returns CxAsset<unknown, TAsset>

    New context entry asset.

Generated using TypeDoc