• Bootstrap Decorator Factory

    Add the decorated class method to the bootstrap sequence that happens at the start of the application. Propel will run all bootstrapped methods in sequence, awaiting any that are async.

    The higher the number, the earlier the bootstrap will be called

    Example

    class MyClass {
    @Bootstrap()
    async init() {
    // Do bootstrap work
    }
    }

    Returns

    • a method decorator

    Parameters

    • Optional options: BootstrapOptions

      optional set of arguments for bootstrapping

    Returns MethodDecorator

Generated using TypeDoc