diff --git a/src/Cherry.js b/src/Cherry.js index b0493c7f..36fc535d 100644 --- a/src/Cherry.js +++ b/src/Cherry.js @@ -92,8 +92,7 @@ export default class Cherry extends CherryStatic { this.options.instanceId = this.instanceId; /** - * @private - * @type {Engine} + * @type {import('./Engine').default} */ this.engine = new Engine(this.options, this); this.init(); diff --git a/src/index.engine.core.js b/src/index.engine.core.js index e28e1880..912ccd0b 100644 --- a/src/index.engine.core.js +++ b/src/index.engine.core.js @@ -51,9 +51,9 @@ class CherryEngine extends CherryStatic { opts.engine.global.urlProcessor = urlProcessorProxy(opts.engine.global.urlProcessor); } + /** @type {import('./Engine').default}*/ // @ts-ignore hack Cherry Instance - const $engine = new Engine(opts, { options: opts }); - return $engine; + this.engine = new Engine(opts, { options: opts }); } }