-
-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
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 anyAdditional context
I'm putting this issue here for discussion, but I can tackle this task if needed 😁
Logs
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested

