Typescript rework continue

This commit is contained in:
Christer Warén
2023-06-04 22:35:07 +03:00
parent 2d0b326721
commit 0e62861e33
14 changed files with 103 additions and 129 deletions

View File

@@ -1,12 +1,14 @@
const _importDynamic = new Function('modulePath', 'return import(modulePath)');
// @ts-ignore
const fetch = (...args: any) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
import logger from "../funcs/logger";
export default class Stations extends Array {
logger: any;
constructor() {
super();
this.logger = require("../funcs/logger.js");
this.logger = logger;
}
async fetch(options: any){