We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac4cdeb commit 85d104bCopy full SHA for 85d104b
sample/src/reducks/posts/types.ts
@@ -9,4 +9,4 @@ export const validationSchema = z.object({
9
message: '記事内容は必須です',
10
}),
11
})
12
-export type Post = z.infer<typeof validationSchema> & RaRecord<string>
+export type Post = Readonly<z.infer<typeof validationSchema> & RaRecord<string>>
sample/src/reducks/products/types.ts
@@ -10,7 +10,7 @@ export const validationSchema = z.object({
.positive('価格は正の値で入力してください'),
description: z.string(),
13
-export type Product = z.infer<typeof validationSchema>
+export type Product = Readonly<z.infer<typeof validationSchema>>
14
15
export type ProductStore = {
16
products: Product[]
0 commit comments