HonestCode
HonestCode
Explore posts from servers
TTCTheo's Typesafe Cult
Created by pilatos on 6/26/2023 in #questions
MacBook Air (15inch) vs MacBook Pro (14inch vs 16inch)
deranged
38 replies
TTCTheo's Typesafe Cult
Created by pilatos on 6/26/2023 in #questions
MacBook Air (15inch) vs MacBook Pro (14inch vs 16inch)
as a soy ts dev
38 replies
TTCTheo's Typesafe Cult
Created by pilatos on 6/26/2023 in #questions
MacBook Air (15inch) vs MacBook Pro (14inch vs 16inch)
I bring it everywhere with myself, because i need my soy latte
38 replies
TTCTheo's Typesafe Cult
Created by pilatos on 6/26/2023 in #questions
MacBook Air (15inch) vs MacBook Pro (14inch vs 16inch)
14inch is amazing
38 replies
TTCTheo's Typesafe Cult
Created by HonestCode on 3/31/2023 in #questions
What would be a good practice for writing types for components that get passed a trpc query?
type Props = {
profileData: IBusinessWithRelatedData
}

export type IBusinessWithRelatedData = Prisma.BusinessGetPayload<{
include: {
business_hours: {
include: {
dayOfWeek: true
}
}
address: true
services: true
socialMedia: true
businessImages: true
events: {
include: {
attendees: true
}
}
eventReservations: {
where: {
status: 'PENDING'
}
select: {
Service: {
include: {
category: true
}
}
reservationEndDate: true
date: true
}
}
}
}>
type Props = {
profileData: IBusinessWithRelatedData
}

export type IBusinessWithRelatedData = Prisma.BusinessGetPayload<{
include: {
business_hours: {
include: {
dayOfWeek: true
}
}
address: true
services: true
socialMedia: true
businessImages: true
events: {
include: {
attendees: true
}
}
eventReservations: {
where: {
status: 'PENDING'
}
select: {
Service: {
include: {
category: true
}
}
reservationEndDate: true
date: true
}
}
}
}>
` but that kinda sucks
5 replies
TTCTheo's Typesafe Cult
Created by HonestCode on 3/31/2023 in #questions
What would be a good practice for writing types for components that get passed a trpc query?
one way i go around this, is type inference,
5 replies
TTCTheo's Typesafe Cult
Created by HonestCode on 2/12/2023 in #questions
queryClient type errors when adding default options to queryclient
fixed -
const [queryClient] = React.useState(
() =>
new QueryClient({
defaultOptions: {
queries: { refetchOnWindowFocus: false, staleTime: 120000 },
},
})
)
const [queryClient] = React.useState(
() =>
new QueryClient({
defaultOptions: {
queries: { refetchOnWindowFocus: false, staleTime: 120000 },
},
})
)
its type blessjmg
2 replies
TTCTheo's Typesafe Cult
Created by jonasmerlin on 2/7/2023 in #questions
What are you using for authorization?
im curious about this aswell, react native solution in particular
7 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/6/2022 in #questions
How to return additional fields from user in session callback next-auth?
fixed my issue as i wanted to have both names separated
18 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/6/2022 in #questions
How to return additional fields from user in session callback next-auth?
in next auth, i added an additional thing to make it return family name aswell.
18 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/6/2022 in #questions
How to return additional fields from user in session callback next-auth?
18 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/6/2022 in #questions
How to return additional fields from user in session callback next-auth?
but if you want to separate name and surname, youre shit out of luck
18 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/6/2022 in #questions
How to return additional fields from user in session callback next-auth?
i wish there was an option to choose what data comes through when authed, because right now by default you only get name
18 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/6/2022 in #questions
How to return additional fields from user in session callback next-auth?
next auth as i noticed, is kinda opinionated on the data it returns once authed
18 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/6/2022 in #questions
How to return additional fields from user in session callback next-auth?
wouldnt return all of the stuff i wanted
18 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/6/2022 in #questions
How to return additional fields from user in session callback next-auth?
my issue was that google auth when making a custom adapter
18 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/6/2022 in #questions
How to return additional fields from user in session callback next-auth?
so basically i fixed it
18 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/6/2022 in #questions
How to return additional fields from user in session callback next-auth?
RIiiiiight...
18 replies
TTCTheo's Typesafe Cult
Created by amanuel on 12/6/2022 in #questions
How to return additional fields from user in session callback next-auth?
on same issue aswell
18 replies
TTCTheo's Typesafe Cult
Created by HonestCode on 1/25/2023 in #questions
create-t3-turbo expo tunnel doesnt fetch on a physical device.
3 replies