icomad
icomad
Explore posts from servers
DTDrizzle Team
Created by icomad on 9/9/2024 in #help
Correct typings for factory table
For anyone incurring in the same error, the solution was quite easy, you have to explicitly type the return value of the factory function like this:
export const createTableFactory = <...>(...): PgTableWithColumns<{
name: TTableName;
schema: string | undefined;
columns: BuildColumns<TTableName, TColumnsMap, "pg">;
dialect: "pg";
}> => { ... }
export const createTableFactory = <...>(...): PgTableWithColumns<{
name: TTableName;
schema: string | undefined;
columns: BuildColumns<TTableName, TColumnsMap, "pg">;
dialect: "pg";
}> => { ... }
2 replies
DTDrizzle Team
Created by icomad on 6/7/2024 in #help
Table factory typescript problem
Yeah, at the end I came up with something exactly like your implementation, it will do for now, thank you!
3 replies
TTCTheo's Typesafe Cult
Created by icomad on 6/24/2023 in #questions
Uploadthing onUploadComplete file size is undefined
Looking through the codebase I found out that in the conditionalDevServer method when simulating the file upload webhook callback the filesize is not present in the post request body, adding it solves the problem but only in development.
3 replies