Skip to content

Commit

Permalink
Migrate to pure ES6
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoli committed Jan 3, 2024
1 parent e9ec9a4 commit 9391ed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/test/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as path from "path";
import * as Mocha from "mocha";
import * as glob from "glob";
import NYC = require("nyc");
import NYC from "nyc";

export async function run(): Promise<void> {
const nyc: NYC = new NYC({
Expand Down
5 changes: 2 additions & 3 deletions typings/nyc/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
declare module 'nyc' {
class NYC {
export default class NYC {
constructor(config?: unknown);
createTempDirectory(): Promise<void>;
writeCoverageFile(): Promise<void>;
wrap(): Promise<void>;
}
export = NYC;
}
}

0 comments on commit 9391ed5

Please sign in to comment.