Interface Setup<TValue, TAsset, TContext>

Context entry asset builder.

Only sets up an asset.

Type Parameters

  • TValue

    Context value type.

  • TAsset = TValue

    Context value asset type.

  • TContext extends CxValues = CxValues

    Context type.

Hierarchy

  • Base<TValue, TAsset, TContext>
    • Setup

Properties

buildAsset?: undefined

setupAsset is required when both placeAsset and buildAsset missing.

entry: CxEntry<TValue, TAsset>

Target context entry.

placeAsset?: undefined

setupAsset is required when both placeAsset and buildAsset missing.

supply?: Supply

Asset supply.

Removes the asset once cut off.

Returned from provide when specified. New one created when omitted.

Methods

  • Sets up asset.

    This method is called immediately when asset provided.

    It can be used e.g. to provide additional assets. Additional assets will be revoked when the asset itself revoked.

    Parameters

    • target: Target<TValue, TAsset, TContext>

      Context entry definition target.

    Returns void

Generated using TypeDoc