-
-
Notifications
You must be signed in to change notification settings - Fork 649
[MatrixRTC] Improve livekit object validation checks #5039
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
availability and first. Signed-off-by: Timo K <[email protected]>
Signed-off-by: Timo K <[email protected]>
this doesn't seem to make sense? Should this be "Improve
and first? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it is doing what it is supposed to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, missed a bit.
| /** | ||
| * @deprecated see LivekitFocusSelection | ||
| */ | ||
| export const isLivekitFocusSelection = (object: any): object is LivekitFocusSelection => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@toger5 this also needs to be unknown
|
(There was some feedback that the title could be better in the web chapter, so I tried to tidy it up) |
| export const isLivekitTransport = (object: unknown): object is LivekitTransport => | ||
| isLivekitTransportConfig(object) && "livekit_alias" in object; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this also needs to check for typeof object.livekit_alias === "string"
Otherwise passing undefined throws.
Signed-off-by: Timo K [email protected]
Checklist
public/exportedsymbols have accurate TSDoc documentation.