constraints
constraints
TTCTheo's Typesafe Cult
Created by constraints on 4/23/2023 in #questions
Tailwind seemingly not working randomly when deployed.
bit annoying it was only appearing after build but w/e ty for tryna help
6 replies
TTCTheo's Typesafe Cult
Created by constraints on 4/23/2023 in #questions
Tailwind seemingly not working randomly when deployed.
Np, I fixed it The problem is that I was breaking the rules here under "Class detection in-depth": https://tailwindcss.com/docs/content-configuration#class-detection-in-depth
6 replies
TTCTheo's Typesafe Cult
Created by constraints on 3/16/2023 in #questions
Noob TRPC quesiton regarding response JSON
I see, so I suppose the optimal way would be to look into moving away from using Json in the schema
14 replies
TTCTheo's Typesafe Cult
Created by constraints on 3/16/2023 in #questions
Noob TRPC quesiton regarding response JSON
what would the better practice be
14 replies
TTCTheo's Typesafe Cult
Created by constraints on 3/16/2023 in #questions
Noob TRPC quesiton regarding response JSON
This worked! I've never seen this done before but thank you.
14 replies
TTCTheo's Typesafe Cult
Created by constraints on 3/16/2023 in #questions
Noob TRPC quesiton regarding response JSON
Hmmm I am not too sure I understand, I tried to do something like
interface quizDataType{
questions: string[]
correctAns: string[]
selectedAnswers:string[]
allAnswers:string[][]
}

const quizData = fetchedQuiz.quizData as quizDataType;
interface quizDataType{
questions: string[]
correctAns: string[]
selectedAnswers:string[]
allAnswers:string[][]
}

const quizData = fetchedQuiz.quizData as quizDataType;
But I don't understand why this wouldn't work?
TS2352: Conversion of type 'string | number | boolean | JsonObject | JsonArray | null' to type 'quizDataType' may be a mistake because neither type sufficiently overlaps with the other
TS2352: Conversion of type 'string | number | boolean | JsonObject | JsonArray | null' to type 'quizDataType' may be a mistake because neither type sufficiently overlaps with the other
14 replies