Refactor Code to typescript
This commit is contained in:
+2
-4
@@ -1,7 +1,5 @@
|
||||
// @ts-check
|
||||
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
|
||||
const jsonFile = path.resolve(__dirname, "../../jsonData/userPriviledges.json");
|
||||
const base64File = Buffer.from(fs.readFileSync(jsonFile, "utf8")).toString(
|
||||
Reference in New Issue
Block a user