Improve typing (#7349)
This commit is contained in:
committed by
GitHub
parent
b2548f05a8
commit
7033f8696a
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user