rdobovic
rdobovic
Explore posts from servers
DTDrizzle Team
Created by rdobovic on 9/18/2024 in #help
DrizzleORM with JSDoc (insert problem)
Ok I managed to find the solution, when I added "strict": true to my jsconfig.json file it worked
4 replies
DTDrizzle Team
Created by rdobovic on 9/18/2024 in #help
DrizzleORM with JSDoc (insert problem)
No description
4 replies
DTDrizzle Team
Created by rdobovic on 9/18/2024 in #help
DrizzleORM with JSDoc (insert problem)
Here is the full error:
No overload matches this call.
Overload 1 of 2, '(value: { id: string | SQL<unknown> | Placeholder<string, any>; }): MySqlInsertBase<MySqlTableWithColumns<{ name: "guilds"; schema: undefined; columns: { id: MySqlColumn<{ name: "guild_id"; tableName: "guilds"; dataType: "string"; ... 10 more ...; generated: GeneratedColumnConfig<...>; }, object>; whitelisted: MySqlColumn<...>; verifiedRoleId: MySqlColumn<...>; unverifiedRoleId: MySqlColumn<...>; }; dialect: "mysql"; }>, ... 4 more ..., never>', gave the following error.
Object literal may only specify known properties, and 'whitelisted' does not exist in type '{ id: string | SQL<unknown> | Placeholder<string, any>; }'.
Overload 2 of 2, '(values: { id: string | SQL<unknown> | Placeholder<string, any>; }[]): MySqlInsertBase<MySqlTableWithColumns<{ name: "guilds"; schema: undefined; columns: { id: MySqlColumn<{ name: "guild_id"; tableName: "guilds"; dataType: "string"; ... 10 more ...; generated: GeneratedColumnConfig<...>; }, object>; whitelisted: MySqlColumn<...>; verifiedRoleId: MySqlColumn<...>; unverifiedRoleId: MySqlColumn<...>; }; dialect: "mysql"; }>, ... 4 more ..., never>', gave the following error.
Object literal may only specify known properties, and 'id' does not exist in type '{ id: string | SQL<unknown> | Placeholder<string, any>; }[]'.ts(2769)
No overload matches this call.
Overload 1 of 2, '(value: { id: string | SQL<unknown> | Placeholder<string, any>; }): MySqlInsertBase<MySqlTableWithColumns<{ name: "guilds"; schema: undefined; columns: { id: MySqlColumn<{ name: "guild_id"; tableName: "guilds"; dataType: "string"; ... 10 more ...; generated: GeneratedColumnConfig<...>; }, object>; whitelisted: MySqlColumn<...>; verifiedRoleId: MySqlColumn<...>; unverifiedRoleId: MySqlColumn<...>; }; dialect: "mysql"; }>, ... 4 more ..., never>', gave the following error.
Object literal may only specify known properties, and 'whitelisted' does not exist in type '{ id: string | SQL<unknown> | Placeholder<string, any>; }'.
Overload 2 of 2, '(values: { id: string | SQL<unknown> | Placeholder<string, any>; }[]): MySqlInsertBase<MySqlTableWithColumns<{ name: "guilds"; schema: undefined; columns: { id: MySqlColumn<{ name: "guild_id"; tableName: "guilds"; dataType: "string"; ... 10 more ...; generated: GeneratedColumnConfig<...>; }, object>; whitelisted: MySqlColumn<...>; verifiedRoleId: MySqlColumn<...>; unverifiedRoleId: MySqlColumn<...>; }; dialect: "mysql"; }>, ... 4 more ..., never>', gave the following error.
Object literal may only specify known properties, and 'id' does not exist in type '{ id: string | SQL<unknown> | Placeholder<string, any>; }[]'.ts(2769)
4 replies
DTDrizzle Team
Created by rdobovic on 8/12/2024 in #help
Recursive CTEs
Ok, thank you for your response, I will look into it.
3 replies