how can I pass proppers as objects to a class so that the constructor interprets them immediately?
Expamle:
export Class MyClass {
tableName: string;
rows: any;
value: any;
where: any;
constructor(tableName: string, rows?: any, value?: any, where?: any) {
this.tableName = tableName;
this.rows = rows;
this.value = value;
this.where = where;
}
}
new MyClass({tableName: 'example', etc...});```