I found another way to do it, for anyone curios:
export var fs = require('fs');
export class Global {
static read(file) {
fs.readFile();
}
}
Then you can use it in another class:
import {Global} from ""
Global.fs.readFile();
I found another way to do it, for anyone curios:
export var fs = require('fs');
export class Global {
static read(file) {
fs.readFile();
}
}
Then you can use it in another class:
import {Global} from ""
Global.fs.readFile();