• Alternative decorator approach that works with

    Returns ((constructor) => any)

      • (constructor): any
      • Parameters

        • constructor: any

        Returns any

    Kos Model

    This decorator must be applied AFTER

    Kos Model

    Example

    // @kosModel("my-model")
    // @withKosModelFutures() // AFTER

    Kos Model

    // export class MyModel implements IKosDataModel { // id: string; // // constructor(modelId: string, options: any, context: KosCreationContext) { // this.id = modelId; // // No need to call setup function with decorator approach // } // // @kosFuture() // async performOperation() { return "done"; } // // unload() {} // }