Skip to content

Commit

Permalink
refactor: migrate typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Mar 3, 2024
1 parent 3cb0d54 commit a48cb6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/index.ts
Expand Up @@ -3,10 +3,10 @@ import { join, dirname } from 'path';
// @ts-ignore
import Promise from 'bluebird';
import * as fs from '../lib/fs';
import { FSWatcher } from 'chokidar';
import type { FSWatcher } from 'chokidar';
const should = chai.should();

function createDummyFolder(path) {
function createDummyFolder(path: string) {
const filesMap = {
// Normal files in a hidden folder
[join('.hidden', 'a.txt')]: 'a',
Expand All @@ -27,7 +27,7 @@ function createDummyFolder(path) {
return Promise.map(Object.keys(filesMap), key => fs.writeFile(join(path, key), filesMap[key]));
}

function createAnotherDummyFolder(path) {
function createAnotherDummyFolder(path: string) {
const filesMap = {
[join('folder', '.txt')]: 'txt',
[join('folder', '.js')]: 'js'
Expand Down

0 comments on commit a48cb6e

Please sign in to comment.