Skip to main content

Function: parseConstructorPreConditionsRunIn()

parseConstructorPreConditionsRunIn(runIn: CommandRunInUnion | CommandSpecificRunIn, resolveConstructorPreConditionsRunType: (types: CommandRunInUnion) => null | readonly ChannelType[], preconditionContainerArray: PreconditionContainerArray): void

Appends the RunIn precondition based on the values passed, defaulting to null, which doesn't add a precondition.

Parameters

ParameterTypeDescription
runInCommandRunInUnion | CommandSpecificRunInThe command's runIn option field from the constructor.
resolveConstructorPreConditionsRunType(types: CommandRunInUnion) => null | readonly ChannelType[]The function to resolve the run type from the constructor.
preconditionContainerArrayPreconditionContainerArrayThe precondition container array to append the precondition to.

Returns

void

Defined in

projects/framework/src/lib/precondition-resolvers/runIn.ts:15