Use Record instead of Object

This commit is contained in:
Dolan Miu
2023-11-01 20:56:02 +00:00
parent afdd5f2d8f
commit d4f160732a

View File

@ -1,7 +1,7 @@
export interface IXmlAttribute {
readonly [key: string]: string | number | boolean;
}
export interface IXmlableObject extends Object {
export interface IXmlableObject extends Record<string, unknown> {
// readonly _attr?: IXmlAttribute;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
readonly [key: string]: any;