Update TypeScript to 4.6.2

This commit is contained in:
Fedor Indutny 2022-03-02 08:55:35 -08:00 committed by GitHub
parent 71b2b6e30a
commit e7b4b9015c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 9 deletions

View file

@ -479,7 +479,7 @@ export function bytesToUuid(bytes: Uint8Array): undefined | UUIDStringType {
}
export function splitUuids(buffer: Uint8Array): Array<UUIDStringType | null> {
const uuids = [];
const uuids = new Array<UUIDStringType | null>();
for (let i = 0; i < buffer.byteLength; i += UUID_BYTE_SIZE) {
const bytes = getBytes(buffer, i, UUID_BYTE_SIZE);
const hex = Bytes.toHex(bytes);