made it real typescript
Revert "added optional media constraints"; that's for a different branch

This reverts commit b0789b72ddf57075da7771dd2cf3a51646e6fba4.
Merge branch 'master' of https://github.com/iislucas/DefinitelyTyped