splitfire?
splitfire?
TTCTheo's Typesafe Cult
Created by Aguilar on 9/30/2024 in #questions
Introducing new library to the deps
maybe thats why they replaced their old dev with me because he used to do that for them without any real reason and i tell them it wont really improve much, just give me some peace of mind that is arguably worthless haha
38 replies
TTCTheo's Typesafe Cult
Created by Aguilar on 9/30/2024 in #questions
Introducing new library to the deps
even me working as a contractor for mainly one client, I could easily just tell them that some of our projects need to get packages updated and bill hundreds of hours updating many sites but that wouldnt really help them make more money
38 replies
TTCTheo's Typesafe Cult
Created by Xyliase on 9/22/2024 in #questions
Vercel Usage, DDoS & Cloudflare (a fun topic i know)
maybe try rate limitting?
6 replies
TTCTheo's Typesafe Cult
Created by Simvolick on 7/7/2023 in #questions
headless cms to use with t3 stack?
the only case i wouldnt recommend it for is if you want to allow users to publish products in any way, its more of a cms for teams to build pages but as far as I know no good way to let people outside of your team to authenticate and make content
21 replies
TTCTheo's Typesafe Cult
Created by Simvolick on 7/7/2023 in #questions
headless cms to use with t3 stack?
ive been using prismic for alot of clients projects and its pretty good, pricing is very nice too if you can manage using only 1 user its pretty much free forever
21 replies
TTCTheo's Typesafe Cult
Created by Christian Lind on 1/18/2023 in #questions
inferring types from tRPC array
im not sure if this is even ideal but ive been using it alot and it works
11 replies
TTCTheo's Typesafe Cult
Created by Christian Lind on 1/18/2023 in #questions
inferring types from tRPC array
i dont remember where I found it but I had a similar issue with the array element type thing and used this:
// Used to get elements of array types as types
type ArrElement<ArrType> = ArrType extends readonly (infer ElementType)[]
? ElementType
: never;
// Used to get elements of array types as types
type ArrElement<ArrType> = ArrType extends readonly (infer ElementType)[]
? ElementType
: never;
And then use it like this with trpc inferred types from routes:
type SubSectionUnitsFromServer =
RouterOutput["course"]["getSubSectionUnits"];

type SubSectionUnitItem = ArrElement<SubSectionUnitsFromServer>;
type SubSectionUnitsFromServer =
RouterOutput["course"]["getSubSectionUnits"];

type SubSectionUnitItem = ArrElement<SubSectionUnitsFromServer>;
11 replies
TTCTheo's Typesafe Cult
Created by AGHA on 12/15/2022 in #questions
Middleware and firebase Auth
its not that hard doing it without nextauth also if you dont want to add that package just for the middleware, i can help with examples if you are using trpc
5 replies
TTCTheo's Typesafe Cult
Created by Gabriel on 12/26/2022 in #questions
Why does typescript change the type of user whenever I add this to my return function?
I started using ts and trpc recently and I see this happen sometimes where a variable shows as randomly returning as any in trpc even tho im sure the db returns something, usually I just restart the ts server and it fixes itself
89 replies
TTCTheo's Typesafe Cult
Created by Aviv on 12/21/2022 in #questions
Prisma - creating row with empty array fields
as far as im aware even if the field cant be set to optional you can still create a user without posts, just dont do posts: [] when creating the user
9 replies
TTCTheo's Typesafe Cult
Created by sen.py on 11/12/2022 in #questions
Dashboards with Tailwind
even if you are trying to just play around with it chances are in the future you will use it for actual projects that will make you the $$ back
8 replies
TTCTheo's Typesafe Cult
Created by sen.py on 11/12/2022 in #questions
Dashboards with Tailwind
yeah I agree tailwindUI is a very good investment, I bought it like a year ago and the amount of time it saves me is well worth it..
8 replies
TTCTheo's Typesafe Cult
Created by splitfire? on 11/8/2022 in #questions
Question about Prisma Data Proxy on Vercel
nevermind i found the issue PepoCozy i was just missing adding the prisma generate command in the vercel build script
2 replies