Module: util/getPrimitiveTargets
Functions
getPartialPrimitiveTargets
▸ getPartialPrimitiveTargets(targets
): PartialPrimitiveTargetDescriptor
[]
Given a list of targets, recursively descends all targets and returns every contained primitive target.
Parameters
Name | Type | Description |
---|---|---|
targets | PartialTargetDescriptor [] | The targets to extract from |
Returns
PartialPrimitiveTargetDescriptor
[]
A list of primitive targets
Defined in
util/getPrimitiveTargets.ts:19
getPrimitiveTargets
▸ getPrimitiveTargets(targets
): PrimitiveTargetDescriptor
[]
Given a list of targets, recursively descends all targets and returns every contained primitive target.
Parameters
Name | Type | Description |
---|---|---|
targets | TargetDescriptor [] | The targets to extract from |
Returns
A list of primitive targets
Defined in
util/getPrimitiveTargets.ts:46
transformPartialPrimitiveTargets
▸ transformPartialPrimitiveTargets(targets
, func
): PartialTargetDescriptor
[]
Given a list of targets, recursively descends all targets and applies func
to every primitive target.
Parameters
Name | Type | Description |
---|---|---|
targets | PartialTargetDescriptor [] | The targets to extract from |
func | (target : PartialPrimitiveTargetDescriptor ) => PartialPrimitiveTargetDescriptor | - |
Returns
A list of primitive targets
Defined in
util/getPrimitiveTargets.ts:72