Is it possible to extend an interface or class during variable declaration?
For instance:
export declare abstract class DynamicFormControlModel implements DynamicPathable {
asyncValidators: DynamicValidatorsConfig | null;
_disabled: boolean;
disabledUpdates: Subject<boolean>;
errorMessages: DynamicValidatorsConfig | null;
hidden: boolean;
id: string;
label: string | null;
labelTooltip: string | null;
controlTooltip: string | null;
layout: DynamicFormControlLayout | null;
name: string;
parent: DynamicPathable | null;
relation: DynamicFormControlRelationGroup[];
updateOn: FormHooks | null;
validators: DynamicValidatorsConfig | null;
abstract readonly type: string;
protected constructor(config: DynamicFormControlModelConfig, layout?: DynamicFormControlLayout | null);
disabled: boolean;
readonly hasErrorMessages: boolean;
toJSON(): Object;
}
model: DynamicFormControlModel extend {value:string}
results in an error.model: DynamicFormControlModel extend {value:string}
- I am aware that I could use
extend {value: string}
or add "value" directly to the class itself, but those are not the solutions I am seeking.