You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using TypeScript with drachtio-srf, the following has type errors after 4.5.23 BUT no actual runtime errors (i.e. the objects are there, but the types are wrong):
import { parseUri } from 'drachtio-srf';
This function is not exposed at all on the types. It is actually exposed, though, and you can use it if you ignore the typing error.
Also, the type signature for the invite() function is:
Srf.invite(sipUri: string, options: any): void
Even though in reality the invite() function accepts a function with req and res. createB2BUA is not exposed on the Srf type either.
The text was updated successfully, but these errors were encountered:
Came here looking for this. Unfortunately it seems several of the types are out of date. It may behoove one of us to pitch in and get a PR opened. I'll see if I can get a few updated for my current project and contribute them back.
I used locally defined types up until yesterday when I updated drachtio-srf and found that types were added a while ago. It broke my application though so I attempted to merge my local types with the ones in the repository.
Could you (@jeffwhelpley and @benashby) possibly help me test and see if something is wrong or missing? #164
If you are using TypeScript with drachtio-srf, the following has type errors after 4.5.23 BUT no actual runtime errors (i.e. the objects are there, but the types are wrong):
This function is not exposed at all on the types. It is actually exposed, though, and you can use it if you ignore the typing error.
Also, the type signature for the
invite()
function is:Srf.invite(sipUri: string, options: any): void
Even though in reality the invite() function accepts a function with req and res.
createB2BUA
is not exposed on the Srf type either.The text was updated successfully, but these errors were encountered: