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
Since the UdgerParser class is not exposed, but only a default function that instantiate the class, there's no way to reference it in a typescript project and take advantage of static analysis.
For example:
class MyClass {
constructor(private _uaParser: UdgerParser) {}
getUserAgentInfo(req: Request) {
const ua = req.headers['user-agent']
return this._uaParser.parseUa(ua);
}
}
Can you please expose the class (and maybe add correct types as well?)
The text was updated successfully, but these errors were encountered:
Since the UdgerParser class is not exposed, but only a default function that instantiate the class, there's no way to reference it in a typescript project and take advantage of static analysis.
For example:
Can you please expose the class (and maybe add correct types as well?)
The text was updated successfully, but these errors were encountered: