Wampy typings @types
Wampy is an amazing, mature and stable project: https://github.com/KSDaemon/wampy.js
It have typings, but those typings are missing a new feature very useful, at least very useful to me :-D You are gonna see this error:
Expected 2 arguments, but got 3.
To fix the typings just add to it:
interface SubscribeAdvancedOptions { match: "prefix" | "wildcard";}
And replace "subscribe definition" with:
subscribe(topicURI: string, callbacks: (((args: any[], kwargs: any) => void) | SubscribeCallbacksHash), advancedOptions?: SubscribeAdvancedOptions): Wampy;














