-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs.promises API does not seem to work #5
Comments
|
The following works (I'm not sure if it should work or if it should not): @file:JsModule("fs")
@file:JsQualifier("promises")
package ...
import kotlin.js.Promise
external fun unlink(paths: String): Promise<Unit> |
cc @ilgonmic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://nodejs.org/api/fs.html#fs_fs_promises_api
It looks like
fs.promises
is not right here:kotlinx-nodejs/kotlinx-nodejs/src/fs.fs.promises.module_node.kt
Line 1 in 8551200
I'm not sure what
declare module "fs/promises"
means in TypeScript, however, the following Kotlin declaration works:The text was updated successfully, but these errors were encountered: