MCPcopy
hub / github.com/sequelize/sequelize / testUntyped

Function testUntyped

types/test/define.ts:60–71  ·  types/test/define.ts::testUntyped
()

Source from the content-addressed store, hash-verified

58UntypedUser.customStaticMethod = () => {};
59
60async 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}

Callers

nothing calls this directly

Calls 3

buildMethod · 0.80
findOneMethod · 0.80
saveMethod · 0.80

Tested by

no test coverage detected