refactor: strictly typed

This commit is contained in:
harttle
2019-02-23 00:49:54 +08:00
parent 51f7e66f60
commit 5b6100d12b
86 changed files with 2630 additions and 2590 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ export function mock (options: { [path: string]: (string | fileDescriptor) }) {
return file.content
}
fs.exists = async function (path) {
fs.exists = async function (path: string) {
console.log('mock fs exists called', path)
return !!files[path]
}