express-ws icon indicating copy to clipboard operation
express-ws copied to clipboard

Typescript typing error

Open mustafaekim opened this issue 7 years ago • 3 comments

Hi, I use node + typescript + express and now I would like to integrate with ws and express-ws. Even though I've installed @ types/ws, the typings do not work. I am getting the error below, when I write app.ws(.. or router.ws(..

Property 'ws' does not exist on type 'Application'

mustafaekim avatar Jun 24 '17 09:06 mustafaekim

types/ws ist for https://github.com/websockets/ws which is a different Project As I know there is no official typing available for this Project.

spali avatar Oct 09 '17 15:10 spali

Any plans to support typescript and provide examples?

fyn-dev avatar Dec 04 '17 11:12 fyn-dev

Property 'ws' does not exist on type 'Express'.

image image

chenyongze avatar Oct 31 '23 14:10 chenyongze