Improve typing (#7349)
This commit is contained in:
parent
b2548f05a8
commit
7033f8696a
8 changed files with 24 additions and 11 deletions
|
@ -57,7 +57,7 @@ export function messageForResourceLimitError(
|
|||
}
|
||||
}
|
||||
|
||||
export function messageForSyncError(err: MatrixError | Error): ReactNode {
|
||||
export function messageForSyncError(err: MatrixError): ReactNode {
|
||||
if (err.errcode === 'M_RESOURCE_LIMIT_EXCEEDED') {
|
||||
const limitError = messageForResourceLimitError(
|
||||
err.data.limit_type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue