Update index.d.ts

This commit is contained in:
jeromewu 2022-08-15 13:21:30 +08:00 committed by GitHub
parent 9c3def8d8b
commit 3de7fc7736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
src/index.d.ts vendored
View File

@ -4,7 +4,6 @@ export const FS: {
readdir: (pathName: string) => string[], readdir: (pathName: string) => string[],
unlink: (fileName: string) => void, unlink: (fileName: string) => void,
mkdir: (fileName: string) => void, mkdir: (fileName: string) => void,
readdir: (fileName: string) => string[],
} }
type FSMethodNames = { [K in keyof typeof FS]: (typeof FS)[K] extends (...args: any[]) => any ? K : never }[keyof typeof FS]; type FSMethodNames = { [K in keyof typeof FS]: (typeof FS)[K] extends (...args: any[]) => any ? K : never }[keyof typeof FS];