-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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?)
Metadata
Metadata
Assignees
Labels
No labels