-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [project-sequencer-statemachine] 初期ステートの設定周りを変更 #2518
feat: [project-sequencer-statemachine] 初期ステートの設定周りを変更 #2518
Conversation
🚀 プレビュー用ページを作成しました 🚀 更新時点でのコミットハッシュ: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!
ちょっと一箇所変えさせていただこうと思います!
PR内容にコメントの空行を削除
とあったのですが、 95e6085 で元に戻ってそうでした!
どっちが意図した変更なのかわからないですが、とりあえず今はプルリクエストの前と実装が変わってない状態なので一旦良さそう。
意図していなかった場合は後で変えていただければ・・・!
ちなみに空行を追加するか消すかのコメントスタイルはどっちでも良さそうですが、コード全体で統一されてることは大事だと思います!
個人的には・・・改行なくても全然見やすそう&一覧性が上がりそう!
まあそもそも@param
がなくてもわかるような引数名にすればいい気がします!
どうしてもわからないのだけコメントを書く感じとかでも。
例えばtransitionTo
の@param id 遷移先のステートのID。
とかは、stateId
という引数名にすればかなり自明かなと。
(これの場合は型でStateId
だと分かってるので、id
のままでも良さそう。)
@@ -91,6 +91,15 @@ type StateFactories<T extends StateDefinition[], Input, Context> = { | |||
) => State<T, Input, Context> & { readonly id: U }; | |||
}; | |||
|
|||
/** | |||
* 初期ステートとして設定可能なステートのIDを表す型。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
「設定可能なステートのID」と書いていて1つの ID ではないことがわかるので、「表す型」は自明かも。
* 初期ステートとして設定可能なステートのIDを表す型。 | |
* 初期ステートとして設定可能なステートのID。 |
だけど他の定義にはそう書いてあるので、ここは書いた方が良さそう!
変えるなら全部変えた方が良さそう。
4205802
into
VOICEVOX:project-sequencer-statemachine
内容
初期ステートをIDで指定する形に変更して、useSequencerStateMachineする際に指定できるようにします。
(デフォルト値を無くす)
また、以下も行います。
関連 Issue
その他