/
githubmirror
/
nativefier
Обзор
Документация
Войти
/
githubmirror
/
nativefier
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main.ts
21 строка
710 B
Adam Weeden
Make app strict TypeScript + linting (and add a shared project) (#1231)
26 июн 2021, 16:59
Не верифицирован
26 июн 2021, 16:59
b74c0bf
Код
Авторство
О чём код?
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;