-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Incorrect typing in worktop/ws
#68
Comments
Sorry, I do not care the slightest about eslint. If you know exactly what it's complaining about I can look at fixing it, but I'm not going to investigate otherwise. Eslint is replaced by tsc directly -- at least for errors like this. |
It's complaining about this: https://github.com/lukeed/worktop/blob/master/src/ws.d.ts#L47 Eslint reads |
On your end, can you try this for the types file: declare const connect: Handler;
export { connect }; |
Oh, that file doesn't have export const handler: Handler = async (request, response) => {
const error = await connect(request, response);
if (error) return error;
} Not a huge deal but could be a good idea to modify the |
This code:
produces the following Eslint errors:
The text was updated successfully, but these errors were encountered: