Grey
Grey
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Grey on 2/3/2023 in #questions
Question: Working with prisma JSON types
I've had this "thing" with prisma + TS after switching to it for a while so I was wondering how are you people properly parsing types of JSON fields prisma, suppose I have some model
model SomeModel {
id ...
name ...
properties Json
}
model SomeModel {
id ...
name ...
properties Json
}
and now I have a type for properties
type Properties = {
a: string;
b: number;
}
type Properties = {
a: string;
b: number;
}
how do you type the field when working with this data? 🤔
4 replies
TTCTheo's Typesafe Cult
Created by Grey on 9/28/2022 in #questions
React Icon situation
Random Question; what icon cdn/library/etc. do you guys use?
11 replies