Export modules in typescript

This commit is contained in:
Christer Warén
2023-06-04 04:29:42 +03:00
parent 56f0ab5a40
commit 9303c4fcc9
38 changed files with 38 additions and 38 deletions

View File

@@ -1,7 +1,7 @@
const _importDynamic = new Function('modulePath', 'return import(modulePath)');
const fetch = (...args) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
module.exports = class Stations extends Array {
export default class Stations extends Array {
constructor() {
super();
this.logger = require("../funcs/logger.js");