This decorator must be applied AFTER
// @kosModel("my-model")
// @withKosModelFutures() // AFTER
// 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() {} // }
Alternative decorator approach that works with