Fix typescript errors and update packages (#561)

* Add @ts-expect errro

* Fix store type

* Add strictNullChecks

* Remove confusing $layout alias

* Update packages

* Use save-exact

* Update vitest
This commit is contained in:
Lachlan Collins
2023-12-30 21:52:04 +11:00
committed by GitHub
parent 2e657d8db2
commit 7c382c8a8f
10 changed files with 197 additions and 259 deletions

View File

@@ -78,6 +78,7 @@ PaxHeader.parse = function (buffer) {
fieldValue = null;
} else if (fieldValue.match(/^\d+$/) !== null) {
// If it's a integer field, parse it as int
// @ts-expect-error code wasn't written in TS
fieldValue = parseInt(fieldValue);
}
// Don't parse float values since precision is lost