TypeScript type exports for real-time updates
niobos opened this issue · 3 comments
Is your feature request related to a problem? Please describe:
I'm trying to interface with this unifi-protect library from TypeScript. Based on an example, I learned that I need to decode the binary websocket messages into a ProtectNvrUpdatePacket
. However, that particular type does not seems to be exported. It's not exported from protect-api-updates.ts, and I can't find a more generic type in other locations either.
Just for clarity: this is purely a type export issue; the code seems to function just fine. This is a minor issue.
Describe the solution you'd like:
export some type that can be used for decoding update packets. I don't know if it needs to be this exact type as defined in protect-api-updates.ts, or some more generic type.
Describe alternatives you've considered:
Working with untyped code works, but isn't ideal.
Additional context:
none
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
There'll be an upcoming major release that actually eliminates the entire need for this...stay tuned! Really appreciate the request though!
This issue is locked to prevent necroposting on closed issues. Please create a new issue for related support requests, bug reports, or feature suggestions.