After implementing the constructor below in TypeScript, I encountered an error stating that the argument type 'this' is not compatible with the parameter type 'ObjectConstructor'. Strangely enough, the CLI didn't flag any errors. Upon reviewing the code, everything appears correct to me (check out the syntax). Could this be a false positive?
export class Store{
oid: string;
storeNumber: string;
address: string;
public constructor(init?: Partial<Store>) {
Object.assign(this, init);
}
}