fix: fixing eslint problems

This commit is contained in:
Amadou Ada DIENE
2021-07-20 09:13:46 +02:00
parent f45cd5d04d
commit 1a5a76f912
29 changed files with 223 additions and 165 deletions

View File

@@ -1,2 +1,2 @@
# Generated JS files
dist
/.dist

View File

@@ -4,12 +4,12 @@ export interface WindowApi {
* @param channel used by the renderer to receive data and by the main to send them
* @param func the callback function to execute when data are available
*/
receive(channel: any, func: (...data: any) => void): void;
receive<Out>(channel: string, func: (output: Out) => void): void;
/**
* This method is used by the renderer process to send data to the main process
* @param channel used by the renderer to send data and by the main to receive them
* @param data the data sent by the renderer process to the main process
*/
send(channel: string, ...data: any): void;
send<In>(channel: string, input: In): void;
}

View File

@@ -1,2 +1,11 @@
export * from './apis/window-api';
export * from './apis/window-api-consts';
import { WindowApi } from "./apis/window-api";
export * from "./apis/window-api";
export * from "./apis/window-api-consts";
export * from "./models/config/app-config";
declare global {
// Global augmentation of the `Window` interface
interface Window {
api: WindowApi;
}
}

View File

@@ -0,0 +1,25 @@
export interface AppConfig {
/** The configuration identifier */
configId: string;
/** The main logger output file path */
mainLogFile: string;
/** The main logger output level */
mainLogLevel: string;
/** Tells if we should try to load app icon */
isIconAvailable: boolean;
/** Tells if `nodeIntegration` webPreference is enabled */
isNodeIntegration: boolean;
/** Tells if `contextIsolation` and `worldSafeExecuteJavaScript` webPreferences are enabled */
isContextIsolation: boolean;
/** Tells if `isEnableRemoteModule` webPreference is enabled */
isEnableRemoteModule: boolean;
/** Tells if we should open dev tools */
isOpenDevTools: boolean;
}

View File

@@ -1,7 +1,7 @@
{
"name": "shared-lib",
"version": "2.0.0",
"main": "dist/index.js",
"main": ".dist/index.js",
"scripts": {
},
"author": "Sourcygen",

View File

@@ -4,7 +4,7 @@
"sourceMap": true,
"composite": true,
"declaration": true,
"outDir": "./dist"
"outDir": "./.dist"
},
"include": ["./**/*.ts"]
}