bcangussu
bcangussu
TTCTheo's Typesafe Cult
Created by bcangussu on 5/3/2023 in #questions
Help with Prisma Validator static evaluation
Sure. The issue I'm having is that if I use the helper as shown above in a query I get partial types, because it maps to
{ include: {someTable: boolean}}
{ include: {someTable: boolean}}
I'd like it to, for example:
const values = await prisma.table,findMany({
include: helper(true)
})
const values = await prisma.table,findMany({
include: helper(true)
})
and have the result be Table & {someTable: ItsType} when I pass true, it currently returns Table & {someTable?: ItsType}
4 replies
TTCTheo's Typesafe Cult
Created by NotLuksus on 11/30/2022 in #questions
Apple AirPod Style Animation on scroll
Definitely would recomend going R3F instead if you care to learn it, super interesing package and ecossystem
10 replies
TTCTheo's Typesafe Cult
Created by NotLuksus on 11/30/2022 in #questions
Apple AirPod Style Animation on scroll
I dont know if this is still how they do it, but for some versions of apples pages they would load multiple high-definition images (split the video frame-by-frame) and change them on scroll
10 replies
TTCTheo's Typesafe Cult
Created by Lopen on 11/29/2022 in #questions
do you have a lawyer read your contracts as a developer?
If you can afford it, absolutely
10 replies