Skip to content

Commit 85d104b

Browse files
committed
entity 型を readonly type に変更
1 parent ac4cdeb commit 85d104b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sample/src/reducks/posts/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ export const validationSchema = z.object({
99
message: '記事内容は必須です',
1010
}),
1111
})
12-
export type Post = z.infer<typeof validationSchema> & RaRecord<string>
12+
export type Post = Readonly<z.infer<typeof validationSchema> & RaRecord<string>>

sample/src/reducks/products/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const validationSchema = z.object({
1010
.positive('価格は正の値で入力してください'),
1111
description: z.string(),
1212
})
13-
export type Product = z.infer<typeof validationSchema>
13+
export type Product = Readonly<z.infer<typeof validationSchema>>
1414

1515
export type ProductStore = {
1616
products: Product[]

0 commit comments

Comments
 (0)