fix: fixing eslint problems
This commit is contained in:
2
workspaces/shared-lib/.gitignore
vendored
2
workspaces/shared-lib/.gitignore
vendored
@@ -1,2 +1,2 @@
|
||||
# Generated JS files
|
||||
dist
|
||||
/.dist
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
25
workspaces/shared-lib/models/config/app-config.ts
Normal file
25
workspaces/shared-lib/models/config/app-config.ts
Normal 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;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "shared-lib",
|
||||
"version": "2.0.0",
|
||||
"main": "dist/index.js",
|
||||
"main": ".dist/index.js",
|
||||
"scripts": {
|
||||
},
|
||||
"author": "Sourcygen",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"sourceMap": true,
|
||||
"composite": true,
|
||||
"declaration": true,
|
||||
"outDir": "./dist"
|
||||
"outDir": "./.dist"
|
||||
},
|
||||
"include": ["./**/*.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user