mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-19 06:20:38 -07:00
refactor: strictly typed
This commit is contained in:
+1
-1
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user