return type is actual subclass options, not the options of ViewModel
This commit is contained in:
parent
c8b5c6dd41
commit
5280467e66
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ export class ViewModel<O extends Options = Options> extends EventEmitter<{change
|
|||
this._options = options;
|
||||
}
|
||||
|
||||
childOptions<T extends Object>(explicitOptions: T): T & Options {
|
||||
childOptions<T extends Object>(explicitOptions: T): T & O {
|
||||
return Object.assign({}, this._options, explicitOptions);
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue