Skip to content
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

fix: add export to interface for Watcher #128

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

multivoltage
Copy link
Contributor

A simple code like this in ts project:

import watch from "node-watch";

export const MyWatcher = function(){
  return watch("src")
}

generate this type error:
Exported variable 'MyWatcher' has or is using name 'Watcher' from external module "/Users/me/Documents/me-project/node_modules/node-watch/lib/watch" but cannot be named.

I try to fix it

@multivoltage
Copy link
Contributor Author

Can I have an update?

@ghost
Copy link

ghost commented Jul 20, 2023

Sorry I haven't had my old laptop with me for a while, and it may take a few more months :(

@multivoltage
Copy link
Contributor Author

So can you merge this?

@yuanchuan yuanchuan merged commit 30de444 into yuanchuan:main Aug 1, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants