File tree Expand file tree Collapse file tree 4 files changed +347
-107
lines changed
Expand file tree Collapse file tree 4 files changed +347
-107
lines changed Original file line number Diff line number Diff line change 113113 "retext-stringify" : " ^4.0.0" ,
114114 "stopword" : " ^3.1.5" ,
115115 "streamdown" : " ^1.6.10" ,
116- "tinybase" : " ^6.7.5 " ,
116+ "tinybase" : " ^7.3.0 " ,
117117 "tinytick" : " ^1.2.8" ,
118118 "unified" : " ^11.0.5" ,
119119 "usehooks-ts" : " ^3.1.1" ,
Original file line number Diff line number Diff line change 1313 "types" : " ./src/index.ts" ,
1414 "dependencies" : {
1515 "@hypr/db" : " workspace:*" ,
16- "tinybase" : " ^6.7.5 " ,
16+ "tinybase" : " ^7.3.0 " ,
1717 "zod" : " ^4.2.1"
1818 },
1919 "devDependencies" : {
Original file line number Diff line number Diff line change @@ -15,20 +15,20 @@ export const jsonObject = <T extends z.ZodTypeAny>(schema: T) => {
1515 } ) ;
1616} ;
1717
18- type InferCellSchema < T > = T extends string | undefined
19- ? { type : "string" ; default ?: string }
20- : T extends number | undefined
21- ? { type : "number" ; default ?: number }
22- : T extends boolean | undefined
23- ? { type : "boolean" ; default ?: boolean }
18+ type InferCellSchema < T > = T extends string | null | undefined
19+ ? { type : "string" ; default ?: string ; allowNull ?: true }
20+ : T extends number | null | undefined
21+ ? { type : "number" ; default ?: number ; allowNull ?: true }
22+ : T extends boolean | null | undefined
23+ ? { type : "boolean" ; default ?: boolean ; allowNull ?: true }
2424 : T extends string
25- ? { type : "string" ; default ?: string }
25+ ? { type : "string" ; default ?: string ; allowNull ?: true }
2626 : T extends number
27- ? { type : "number" ; default ?: number }
27+ ? { type : "number" ; default ?: number ; allowNull ?: true }
2828 : T extends boolean
29- ? { type : "boolean" ; default ?: boolean }
29+ ? { type : "boolean" ; default ?: boolean ; allowNull ?: true }
3030 : T extends object
31- ? { type : "string" }
31+ ? { type : "string" ; allowNull ?: true }
3232 : never ;
3333
3434export type InferTinyBaseSchema < T > = T extends { _output : infer Output }
You can’t perform that action at this time.
0 commit comments