Modified export so it's easier to inline as a source file into a TypeScript project.

To deal with TypeScript module headaches, this file gets symlinked into a project, so it also gets linted - reformatted to match project linting rules. :/ Less than ideal.