Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

エラーの形式を決める #28

Open
y-chan opened this issue Jul 23, 2022 · 1 comment
Open

エラーの形式を決める #28

y-chan opened this issue Jul 23, 2022 · 1 comment

Comments

@y-chan
Copy link
Collaborator

y-chan commented Jul 23, 2022

No description provided.

@kota-yata
Copy link
Contributor

有効なフォーマットであるかどうかを単純に示すのであれば

{
  isValid: boolean,
  message: string
}

で良いが、警告を出す場合バイナリでは足りない。なので

{
  state: (union型で定義)
  message: string
}

の形がより良いのではないか

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants