Skip to content

Commit

Permalink
fixed api type
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Apr 17, 2023
1 parent a1b74ce commit e2f4920
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/altair-api/src/auth/strategies/google.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') {
});
}

authenticate(req: Request, options) {
authenticate(req: Request, options: Record<string, unknown>) {
if (req.query.state) {
options.state = req.query.state;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { downloadData, isElectronApp } from '../../utils';
import { RootState } from 'altair-graphql-core/build/types/state/state.interfaces';
import { HeaderState } from 'altair-graphql-core/build/types/state/header.interfaces';
import { IDictionary } from 'altair-graphql-core/build/types/shared';
import { getIpc } from './ipc';

interface ConnectOptions {
importFileContent: (content: string) => void;
Expand All @@ -34,7 +35,7 @@ export class ElectronAppService {
windowIds: string[] = [];
activeWindowId = '';

private ipc: IpcRenderer | undefined = (window as any).ipc;
private ipc = getIpc();

constructor(
private store: Store<RootState>,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { IpcRenderer } from 'electron';

export const getIpc = () => {
const ipc: IpcRenderer | undefined = (window as any).ipc;

return ipc;
};

0 comments on commit e2f4920

Please sign in to comment.