mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-21 17:32:41 +00:00
feat: enable stricter type checking options
feat: make the app more fault tolerant
This commit is contained in:
@@ -37,7 +37,7 @@ export function serializeActions(actions: number[]): bigint {
|
||||
let native = 0n;
|
||||
for (let i = 1; i <= actions.length; i++) {
|
||||
native |=
|
||||
BigInt(actions[actions.length - i] & 0x3ff) << BigInt((12 - i) * 10);
|
||||
BigInt(actions[actions.length - i]! & 0x3ff) << BigInt((12 - i) * 10);
|
||||
}
|
||||
return native;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user