Closed
Description
Hello,
I'm not sure how to edit the types (I can't find reference to navigator anywhere), but your output is incorrect. The navigator.mediaDevices
object should have a getDisplayMedia(constraints)
method that returns a Promise<MediaStream
.
See here: https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia
This has been an issue in the main typescript library for some time now: microsoft/TypeScript#33232 .
It seems like Typescript's files are generated by this library. This should be an easy fix for someone who knows what they're doing. Alternatively, point me to where the navigator.mediaDevices types are defined and I'll do it myself.
Metadata
Metadata
Assignees
Labels
No labels