Skip to content

Commit

Permalink
entity 型を readonly type に変更
Browse files Browse the repository at this point in the history
  • Loading branch information
kuramapommel committed Aug 20, 2024
1 parent ac4cdeb commit 85d104b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sample/src/reducks/posts/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export const validationSchema = z.object({
message: '記事内容は必須です',
}),
})
export type Post = z.infer<typeof validationSchema> & RaRecord<string>
export type Post = Readonly<z.infer<typeof validationSchema> & RaRecord<string>>
2 changes: 1 addition & 1 deletion sample/src/reducks/products/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const validationSchema = z.object({
.positive('価格は正の値で入力してください'),
description: z.string(),
})
export type Product = z.infer<typeof validationSchema>
export type Product = Readonly<z.infer<typeof validationSchema>>

export type ProductStore = {
products: Product[]
Expand Down

0 comments on commit 85d104b

Please sign in to comment.