electron@22.3.3, esbuild@0.17.11, typescript@5.0.2

This commit is contained in:
Fedor Indutny 2023-03-20 12:58:07 -07:00 committed by GitHub
parent 27b7060d09
commit 28adb58c69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 198 additions and 180 deletions

View file

@ -32,6 +32,7 @@ export enum AvatarSize {
TWENTY_EIGHT = 28,
THIRTY_TWO = 32,
FORTY_EIGHT = 48,
FIFTY_TWO = 52,
EIGHTY = 80,
}

View file

@ -151,7 +151,7 @@ function resetItems(): ItemsResetAction {
function getDefaultCustomColorData() {
return {
colors: {},
colors: {} as Record<string, CustomColorType>,
version: 1,
};
}

View file

@ -32,7 +32,9 @@ describe('clearTimeoutIfNecessary', () => {
const fn = sinon.fake();
const timeout = setTimeout(fn, 123);
clearTimeoutIfNecessary(timeout);
clearTimeoutIfNecessary(
timeout as unknown as ReturnType<typeof setTimeout>
);
await clock.tickAsync(9999);
sinon.assert.notCalled(fn);
@ -43,7 +45,9 @@ describe('clearTimeoutIfNecessary', () => {
const fn = sinon.fake();
const interval = setInterval(fn, 123);
clearTimeoutIfNecessary(interval);
clearTimeoutIfNecessary(
interval as unknown as ReturnType<typeof setTimeout>
);
await clock.tickAsync(9999);
sinon.assert.notCalled(fn);