This commit is contained in:
Christer Warén
2023-06-04 07:15:30 +03:00
parent fb36a8f890
commit 2d0b326721
3 changed files with 9 additions and 5 deletions

View File

@ -1,6 +1,5 @@
const _importDynamic = new Function('modulePath', 'return import(modulePath)');
// @ts-ignore
const fetch = (...args) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
const fetch = (...args: any) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
export default class Stations extends Array {
logger: any;