Fix strict TypeScript checks for client
This commit is contained in:
@@ -181,7 +181,8 @@ function assertClientStateShape(
|
||||
);
|
||||
}
|
||||
|
||||
if (!Number.isInteger(candidate.updatedAt) || candidate.updatedAt < 0) {
|
||||
const updatedAt = candidate.updatedAt;
|
||||
if (typeof updatedAt !== "number" || !Number.isInteger(updatedAt) || updatedAt < 0) {
|
||||
throw new YonexusClientStateCorruptionError(
|
||||
`Client state file has invalid updatedAt value: ${filePath}`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user