Skip to content
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

TypeScript type for mediaDevices missing from index.d.ts #73

Open
trevorparscal opened this issue Feb 4, 2024 · 1 comment
Open

TypeScript type for mediaDevices missing from index.d.ts #73

trevorparscal opened this issue Feb 4, 2024 · 1 comment

Comments

@trevorparscal
Copy link

I added this to my own module.d.ts and it worked.

declare module 'node-web-audio-api' {
	export const mediaDevices: Navigator[ 'mediaDevices' ];
}

However, I expect mediaDevices was omitted from index.d.ts in error.

@b-ma
Copy link
Collaborator

b-ma commented Feb 4, 2024

Hey, thanks or the feedback, any PR is welcome on this point (and any typescript stuff), I'm not a typescript user myself so I have no ideas about what is missing (see also #40)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants