Environment
No response
Reproduction
I don't think we need a reproduction link for this
Describe the bug
The Model class has this line [s: keyof ModelFields]: any;, which I think is problematic because it allows us to use any property of the model without typescript errors. I think we should remove this line. Is there a specific reason for keeping it?
For example for this Foo model, we should get this ts error: Property 'bar' does not exist on type 'Foo'..., while in the example, bar is typed as any
export class Foo extends Model {
@Uid() id!: number;
}
const foo = new Foo();
foo.bar; // typed as any
Current behavior

Expected behavior

Additional context
I'm putting this issue here for discussion, but I can tackle this task if needed 😁
Logs
No response
Environment
No response
Reproduction
I don't think we need a reproduction link for this
Describe the bug
The
Modelclass has this line[s: keyof ModelFields]: any;, which I think is problematic because it allows us to use any property of the model without typescript errors. I think we should remove this line. Is there a specific reason for keeping it?For example for this
Foomodel, we should get this ts error:Property 'bar' does not exist on type 'Foo'..., while in the example,baris typed asanyCurrent behavior

Expected behavior

Additional context
I'm putting this issue here for discussion, but I can tackle this task if needed 😁
Logs
No response