panty slayer 007
panty slayer 007
DTDrizzle Team
Created by panty slayer 007 on 1/4/2024 in #help
Trying to insert but getting a type error?
how can i handle errors? like if something is unique and people try to register with that username again and stuff.
9 replies
DTDrizzle Team
Created by panty slayer 007 on 1/4/2024 in #help
Trying to insert but getting a type error?
this is happening
9 replies
DTDrizzle Team
Created by panty slayer 007 on 1/4/2024 in #help
Trying to insert but getting a type error?
No overload matches this call.
Overload 1 of 2, '(value: { id: string | SQL<unknown> | Placeholder<string, any>; username: string | SQL<unknown> | Placeholder<string, any>; password: string | SQL<unknown> | Placeholder<...>; ... 6 more ...; createdAt?: SQL<...> | ... 1 more ... | Placeholder<...>; }): MySqlInsertBase<...>', gave the following error.
Argument of type '{ username: string; password: string; }' is not assignable to parameter of type '{ id: string | SQL<unknown> | Placeholder<string, any>; username: string | SQL<unknown> | Placeholder<string, any>; password: string | SQL<unknown> | Placeholder<...>; ... 6 more ...; createdAt?: SQL<...> | ... 1 more ... | Placeholder<...>; }'.
Property 'id' is missing in type '{ username: string; password: string; }' but required in type '{ id: string | SQL<unknown> | Placeholder<string, any>; username: string | SQL<unknown> | Placeholder<string, any>; password: string | SQL<unknown> | Placeholder<...>; ... 6 more ...; createdAt?: SQL<...> | ... 1 more ... | Placeholder<...>; }'.
No overload matches this call.
Overload 1 of 2, '(value: { id: string | SQL<unknown> | Placeholder<string, any>; username: string | SQL<unknown> | Placeholder<string, any>; password: string | SQL<unknown> | Placeholder<...>; ... 6 more ...; createdAt?: SQL<...> | ... 1 more ... | Placeholder<...>; }): MySqlInsertBase<...>', gave the following error.
Argument of type '{ username: string; password: string; }' is not assignable to parameter of type '{ id: string | SQL<unknown> | Placeholder<string, any>; username: string | SQL<unknown> | Placeholder<string, any>; password: string | SQL<unknown> | Placeholder<...>; ... 6 more ...; createdAt?: SQL<...> | ... 1 more ... | Placeholder<...>; }'.
Property 'id' is missing in type '{ username: string; password: string; }' but required in type '{ id: string | SQL<unknown> | Placeholder<string, any>; username: string | SQL<unknown> | Placeholder<string, any>; password: string | SQL<unknown> | Placeholder<...>; ... 6 more ...; createdAt?: SQL<...> | ... 1 more ... | Placeholder<...>; }'.
9 replies
DTDrizzle Team
Created by panty slayer 007 on 1/4/2024 in #help
Trying to insert but getting a type error?
i tried that and it didn't work
9 replies