diff --git a/src/index.d.ts b/src/index.d.ts index acaef31..aa3e2fe 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -1,3 +1,9 @@ +export const FS: { + writeFile: (fileName: string, binaryData: Uint8Array) => Promise, + readFile: (fileName: string) => Promise, + unlink: (fileName: string) => Promise, +} + type FSMethodNames = { [K in keyof typeof FS]: (typeof FS)[K] extends (...args: any[]) => any ? K : never }[keyof typeof FS]; type FSMethodArgs = { [K in FSMethodNames]: Parameters<(typeof FS)[K]> }; type FSMethodReturn = { [K in FSMethodNames]: ReturnType<(typeof FS)[K]> };