Skip to content

Commit

Permalink
Resolve linter errors/warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacingBat3 committed Aug 15, 2023
1 parent d0b941a commit 3eb202d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sources/code/build/forge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Redeclare<I, M> = Omit<I, keyof M> & M;

// Base types for makers / publishers

type MPConfig = unknown | {
type MPConfig = object | {
/** Maker or publisher specific set of options. */
options?: unknown;
};
Expand Down
2 changes: 1 addition & 1 deletion sources/code/main/modules/parent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const popups = [
* It will either create a such window or do nothing if it does already exists.
*
*/
export function initWindow(name:string&keyof L10N["client"]["windows"], parent: Electron.BrowserWindow, properties?: Electron.BrowserWindowConstructorOptions) {
export function initWindow(name:keyof L10N["client"]["windows"], parent: Electron.BrowserWindow, properties?: Electron.BrowserWindowConstructorOptions) {
const isPopup = popups.includes(name);
if(!app.isReady()) throw new Error("Tried to initialize a new parent window when app is not ready!");
const wSession = isPopup ? session.defaultSession : session.fromPartition("temp:"+name);
Expand Down
2 changes: 1 addition & 1 deletion sources/code/renderer/preload/about.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function showAppLicense() {
animation.reverse();
promises.push(event2promise(animation, "finish"));
}
Promise.allSettled(promises).finally(() => {
void Promise.allSettled(promises).finally(() => {
dialog.remove();
content.remove();
locks.dialog = false;
Expand Down

0 comments on commit 3eb202d

Please sign in to comment.