Enforce stronger types for ArrayBuffers and storage

This commit is contained in:
Fedor Indutny 2021-06-14 17:09:37 -07:00 committed by GitHub
parent 61ac79e9ae
commit 8f5086227a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
56 changed files with 748 additions and 675 deletions

View file

@ -18,7 +18,7 @@ describe('RetryPlaceholders', () => {
let clock: any;
beforeEach(() => {
window.storage.put(STORAGE_KEY, null);
window.storage.put(STORAGE_KEY, undefined as any);
clock = sinon.useFakeTimers({
now: NOW,
@ -55,7 +55,7 @@ describe('RetryPlaceholders', () => {
window.storage.put(STORAGE_KEY, [
{ item: 'is wrong shape!' },
{ bad: 'is not good!' },
]);
] as any);
const placeholders = new RetryPlaceholders();