mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-09-22 17:49:02 +00:00
b74c0bf959
* 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>
22 lines
710 B
TypeScript
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;
|