fix(types): added missing typings

This commit is contained in:
Corentin Thomasset 2021-05-17 23:11:20 +02:00
parent a8f9d7e555
commit 27f3826d5f
No known key found for this signature in database
GPG key ID: DBD997E935996158
3 changed files with 5 additions and 5 deletions

View file

@ -64,7 +64,7 @@ export default class TextStats extends Tool {
}
get textSize() {
return formatBytes(Uint8Array.from(this.text).buffer.byteLength, 3)
return formatBytes(Uint8Array.from(this.text as unknown as ArrayLike<number>).buffer.byteLength, 3)
}
}