TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
navigator.mediaDevices is not available in insecure contexts
lib Update Request
Configuration Check
My compilation target is esnext and my lib is ['esnext', 'dom'].
Missing / Incorrect Definition
navigator.mediaDevices (and potentially everything that doesn't exist in insecure contexts) should be an optional property in the interface.
Documentation Link
Accoding to the spec:
partial interface Navigator {
[SameObject, SecureContext] readonly attribute MediaDevices mediaDevices;
};
... it indicates that the construct is exposed only within a secure context.
Should have an jsdoc comment: #1150
Yup, https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/1175 covered this and there now should at least be a comment about it.
@github-actions close
Closing because @saschanaz is one of the code-owners of this repository.