You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
type Side = 'send' | 'receive' function sideCharObj(): { [key: Side]: string } { return { send: '発', receive: '受' } }, { [key: string]: string } のように書けそうだが、 これだと下記のエラーが出る An index signature parameter type cannot be a union type. Consider using a mapped object type instead. Mapped types で key の型を指定 type Side = 'send' | 'receive' function sideCharObj(): { [key in Side]: string } { return { send: '発'
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く