couincouin007
couincouin007
Explore posts from servers
TTCTheo's Typesafe Cult
Created by couincouin007 on 12/8/2023 in #questions
Conflict between shadcn/ui components and @typescript-eslint/no-empty-interface
thank you @JoshuaKGoldberg for your detailed answer! i understand now better i need to decide for myself how I want to handle it. kinda annoying to have to fix these warnings / errors each time i will use shadcn components, but I understand it's not easy to all have same rules. and i personnaly don't want to see any warnings / errors in my codebase, so i will fix the each time 🙂
6 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
hoping drizzle team will provide more convenient type helpers soon!
19 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
thanks i'll read that!
19 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
Anyway, don't worry about option 2, that's pretty easy as well
any help? 😄 I don't think you speak about it in your article, except if I missed something?
19 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
im going through your article, great stuff! i was also thinking about creating a facade, Im improving my skills on a pet project so I try not to go too far, but at the same time, I try to make my code be "elegant", and thats kind of frustating to not have many resources showing such pattern in tutorials / courses
19 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
im a bit confused "i dont let any of my ui code call any db directly", do you mean thats what im doing in my example? because thats also what I try to avoid 😄
19 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
But a React component can be turned into a client component, so it could potentially runs on the client (again, in the example, its on the server there)
19 replies
DTDrizzle Team
Created by couincouin007 on 12/18/2023 in #help
getPost() / getPosts() / ... what's your opinion? + any TS magician here :) ?
Im using Next.js with React Server Components, so my code example in this case would run on the server
19 replies
TTCTheo's Typesafe Cult
Created by couincouin007 on 12/8/2023 in #questions
Conflict between shadcn/ui components and @typescript-eslint/no-empty-interface
anyone? 🙂
6 replies