I need some help to change the declaration of some classes in the TS file. Almost all classes that's extends DataField class, the constructor are declared with generic array object, but all classes has a type config declaration, is it possible to change the declaration to the correct type in the constructors, like the BooleanDataField?
This is the NumberDataField declaration in TS file, but the class is declared with a generic constructor.
export class NumberDataField extends DataField {
/**
* Base constructor, passes arguments to [construct](https://bryntum.com/products/grid/docs/api/Core/Base#function-construct).
* @param {object} args Usually called with a config object, but accepts any params
*/
constructor(...args: object[]);
}
The ideal declaration is like this:
export class NumberDataField extends DataField {
/**
* Base constructor, passes arguments to [construct](https://bryntum.com/products/grid/docs/api/Core/Base#function-construct).
* @param {object} args Usually called with a config object, but accepts any params
*/
constructor(config?: Partial<NumberDataFieldConfig>);
}
This "problem" exists in almost all DataField classes, this is the "fix" I'm suggesting.