-
Notifications
You must be signed in to change notification settings - Fork 309
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
SpeakerIdの型を作成 #1196
The head ref may contain hidden characters: "SpeakerId\u306B"
SpeakerIdの型を作成 #1196
Conversation
export const speakerIdSchema = z.string().uuid().brand<"SpeakerId">(); | ||
export type SpeakerId = z.infer<typeof speakerIdSchema>; | ||
export const SpeakerId = (id: string): SpeakerId => speakerIdSchema.parse(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.
実際の型定義はここです
@@ -112,7 +113,7 @@ export type QuasarDialog = QVueGlobals["dialog"]; | |||
|
|||
export type AudioStoreState = { | |||
characterInfos: Record<EngineId, CharacterInfo[]>; | |||
morphableTargetsInfo: Record<string, MorphableTargetInfoTable>; | |||
morphableTargetsInfo: Record<EngineId, MorphableTargetInfoTable>; |
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.
EngineIdのときの変更忘れです
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.
変更漏れはなさそうに見える、良さそうです:+1:
レビューありがとうございます、助かります!! マージします! |
内容
SpeakerIdをstringから専用の型にします。
関連 Issue