fix tsc
This commit is contained in:
parent
34e393b6d7
commit
2bbacf23ad
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import MessageFormatted from './MessageFormatted'
|
|||
import Button from './Button'
|
||||
|
||||
type Props = {
|
||||
dieReasonMessage: readonly MessageFormatPart[]
|
||||
dieReasonMessage: MessageFormatPart[]
|
||||
respawnCallback: () => void
|
||||
disconnectCallback: () => void
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ export default () => {
|
|||
if (!isModalActive || !dieReasonMessage || options.autoRespawn) return null
|
||||
|
||||
return <DeathScreen
|
||||
dieReasonMessage={dieReasonMessage}
|
||||
dieReasonMessage={dieReasonMessage as MessageFormatPart[]}
|
||||
respawnCallback={() => {
|
||||
bot._client.write('client_command', bot.supportFeature('respawnIsPayload') ? { payload: 0 } : { actionId: 0 })
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue