Skip to content

Commit 5725bb4

Browse files
author
Tim Etchells
committed
Fix some tsc errors
1 parent d21f2b7 commit 5725bb4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dev/src/Logger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class Log {
139139
consoleFn(label, s);
140140
}
141141

142-
fs.appendFile(this.logFilePath, msg, (err: NodeJS.ErrnoException) => {
142+
fs.appendFile(this.logFilePath, msg, (err) => {
143143
if (err != null) {
144144
console.error("FS error when logging:", err);
145145
}

dev/src/constants/Resources.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ namespace Resources {
4747
export function getIconPaths(icon: Icons): IconPaths {
4848
const darkPath = getResourcePath(IMG_FOLDER_NAME, DARK_FOLDER_NAME, icon);
4949
// make sure the file exists and is readable
50-
fs.access(darkPath, fs.constants.R_OK, (err: NodeJS.ErrnoException) => {
50+
fs.access(darkPath, fs.constants.R_OK, (err) => {
5151
if (err) {
5252
Log.e(`Dark icon not found! ${icon} - error:`, err);
5353
}
5454
});
5555

5656
const lightPath = getResourcePath(IMG_FOLDER_NAME, LIGHT_FOLDER_NAME, icon);
57-
fs.access(lightPath, fs.constants.R_OK, (err: NodeJS.ErrnoException) => {
57+
fs.access(lightPath, fs.constants.R_OK, (err) => {
5858
if (err) {
5959
Log.e(`Light icon not found! ${icon} - error:`, err);
6060
}

dev/src/test/Base.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe("Microclimate Tools for VSCode basic test", async function() {
6464
expect(logPath).to.exist;
6565
Log.t("The logs are at " + logPath);
6666

67-
fs.readFile(logPath, (err: NodeJS.ErrnoException, data) => {
67+
fs.readFile(logPath, (err, data) => {
6868
expect(err, "Couldn't read log file, error was " + err).to.be.null;
6969
const logContents = data.toString("utf8");
7070
expect(logContents).to.have.length.greaterThan(0, "Log existed but was empty!");

0 commit comments

Comments
 (0)