RFC: Added ext as options to allow for e.g. ts files. fixes #71

Added 'ext' to options which takes either an instance of a RegExp, String or an array of strings (extensions).
This PR is mostly a request for feedback as there is currently no tests, but I wished to discuss the approach before completing the PR with tests and?