Type.TypeAlias.Customiser - DecentM/concourse-ts GitHub Wiki
@decentm/concourse-ts / Type / Customiser
Type Alias: Customiser<Type, Options>
Customiser<
Type,Options>:Optionsextendsvoid? (instance) =>void: (instance,parent) =>void
Defined in: declarations/customiser.ts:15
A customiser is a function that concourse-ts calls during an object's
construction. Customiser functions are provided by the user either by calling
a static method called customise, or by calling a method called customise
on the class instance itself.
For example, this snippet will set a default name on all DoSteps:
DoStep.customise((do_step) => {
do_step.name = 'my-step'
})
Type Parameters
• Type
• Options = void