|
|
|
@ -99,9 +99,8 @@ export const CORE_DEFAULT_OPTIONS: Options = {
|
|
|
|
|
|
|
|
|
|
export class CoreOptions<O extends Options> { |
|
|
|
|
_options: O; |
|
|
|
|
protected podDefaults?: Partial<O>; |
|
|
|
|
|
|
|
|
|
constructor(options: O) { |
|
|
|
|
constructor(options: O, private _podDefaults?: Partial<O>) { |
|
|
|
|
this.setOptions(options); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -115,7 +114,7 @@ export class CoreOptions<O extends Options> {
|
|
|
|
|
|
|
|
|
|
// this getter can be overrited in Pod
|
|
|
|
|
protected getDefaults(): Partial<O> { |
|
|
|
|
return lodashDefaultsDeep(this.podDefaults, CORE_DEFAULT_OPTIONS); |
|
|
|
|
return lodashDefaultsDeep(this._podDefaults, CORE_DEFAULT_OPTIONS); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
get allOptions(): O { |
|
|
|
|