-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add typescript type generation to build
- Loading branch information
Showing
10 changed files
with
98 additions
and
11 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
export const readFileRequest: "ReadFile-Request"; | ||
export const writeFileRequest: "WriteFile-Request"; | ||
export const readFileResponse: "ReadFile-Response"; | ||
export const writeFileResponse: "WriteFile-Response"; | ||
export const changeLanguageRequest: "ChangeLanguage-Request"; | ||
export function preloadBindings(ipcRenderer: any, process: any): { | ||
send: (channel: any, data: any) => void; | ||
onReceive: (channel: any, func: any) => void; | ||
onLanguageChange: (func: any) => void; | ||
clientOptions: { | ||
environment: any; | ||
platform: any; | ||
resourcesPath: string; | ||
}; | ||
}; | ||
export function mainBindings(ipcMain: any, browserWindow: any, fs: any): void; | ||
export function clearMainBindings(ipcMain: any): void; | ||
export default Backend; | ||
declare class Backend { | ||
constructor(services: any, backendOptions?: {}, i18nextOptions?: {}); | ||
readCallbacks: {}; | ||
writeCallbacks: {}; | ||
writeTimeout: any; | ||
writeQueue: any[]; | ||
writeQueueOverflow: any[]; | ||
useOverflow: boolean; | ||
init(services: any, backendOptions: any, i18nextOptions: any): void; | ||
services: any; | ||
backendOptions: any; | ||
i18nextOptions: any; | ||
mainLog: string; | ||
rendererLog: string; | ||
setupIpcBindings(): void; | ||
write(writeQueue: any): void; | ||
requestFileRead(filename: any, callback: any): void; | ||
read(language: any, namespace: any, callback: any): void; | ||
readMulti(_languages: any, _namespaces: any, _callback: any): void; | ||
create(languages: any, namespace: any, key: any, fallbackValue: any, callback: any): void; | ||
} | ||
declare namespace Backend { | ||
let type: string; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export namespace UUID { | ||
function generate(): string; | ||
} | ||
export function mergeNested(obj: any, path: any, split: any, val: any): any; | ||
export function groupByArray(xs: any, key: any): any; | ||
//# sourceMappingURL=utils.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
// Change this to match your project | ||
"include": ["src/**/*"], | ||
"compilerOptions": { | ||
// Tells TypeScript to read JS files, as | ||
// normally they are ignored as source files | ||
"allowJs": true, | ||
// Generate d.ts files | ||
"declaration": true, | ||
// This compiler run should | ||
// only output d.ts files | ||
"emitDeclarationOnly": true, | ||
// Types should go into this directory. | ||
// Removing this would place the .d.ts files | ||
// next to the .js files | ||
"outDir": "lib", | ||
// go to js file when using IDE functions like | ||
// "Go to Definition" in VSCode | ||
"declarationMap": true | ||
} | ||
} |