2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-05-29 11:10:46 +00:00
nativefier/src/main.ts
Adam Weeden b74c0bf959
Make app strict TypeScript + linting (and add a shared project) (#1231)
* Convert app to strict typing + shared library

* Fix new code post-merge

* Remove extraneous lint ignores

* Apply suggestions from code review

Co-authored-by: Ronan Jouchet <ronan@jouchet.fr>

* Fix prettier complaint

* Dedupe eslint files

* Fix some refs after merge

* Fix clean:full command

Co-authored-by: Ronan Jouchet <ronan@jouchet.fr>
2021-06-26 09:59:28 -04:00

22 lines
710 B
TypeScript

import 'source-map-support/register';
import { buildNativefierApp } from './build/buildNativefierApp';
import { RawOptions } from '../shared/src/options/model';
export { buildNativefierApp };
/**
* Only for compatibility with Nativefier <= 7.7.1 !
* Use the better, modern async `buildNativefierApp` instead if you can!
*/
function buildNativefierAppOldCallbackStyle(
options: RawOptions, // eslint-disable-line @typescript-eslint/explicit-module-boundary-types
callback: (err?: Error, result?: string) => void,
): void {
buildNativefierApp(options)
.then((result) => callback(undefined, result))
.catch((err: Error) => callback(err));
}
export default buildNativefierAppOldCallbackStyle;