Búsqueda de sitios web

Cómo implementar Pusher con Typescript en un servidor Node.JS


Tengo un problema con Pusher al integrarlo con TypeScript, ts dice que Esta expresión no es constructible. El tipo 'typeof Pusher' no tiene firmas de construcción

Respuesta #1

Una sugerencia aquí no funcionó para mí, pero esta sí.

En lugar de

new Pusher(

usar

new Pusher.default(