()
| 58 | UntypedUser.customStaticMethod = () => {}; |
| 59 | |
| 60 | async function testUntyped() { |
| 61 | UntypedUser.customStaticMethod(); |
| 62 | |
| 63 | expectTypeOf<UntypedUserModel>().toMatchTypeOf(UntypedUser.build()); |
| 64 | |
| 65 | const user = await UntypedUser.findOne(); |
| 66 | expectTypeOf(user).toEqualTypeOf<UntypedUserModel | null>(); |
| 67 | |
| 68 | if (!user) return; |
| 69 | user.firstName = class="st">'John'; |
| 70 | await user.save(); |
| 71 | } |