コメントできないので issue で...
KushibikiMashu opened this issue · comments
Panda_Program commented
type ActionType = 'setAlwaysOpenOtherTab' | 'setInKibelaLinkOpenSameTab' | 'setExcludeUrlInputValidation' | 'setExcludeUrlInput' | "setExcludeUrlList"
export type Action = {
type: ActionType;
payload?: unknown
};
は、以下のように書くと unknown にならないですね
export type Action =
| { type: 'setAlwaysOpenOtherTab', payload: boolean }
| { type: 'setInKibelaLinkOpenSameTab', payload: boolean }
| ...