mockdeep / typewiz

Automatically discover and add missing types in your TypeScript code
https://medium.com/@urish/manual-typing-is-no-fun-introducing-typewiz-58e3e8813f4c
1.1k stars 46 forks source link

`ConfigurationParser` fails if calling `getCompilerOptions()` before `parse()` #59

Closed urish closed 6 years ago

urish commented 6 years ago

e.g.

import { ConfigurationParser } from 'typewiz-core';
new ConfigurationParser().getCompilerOptions()

will throw Cannot read property 'common' of undefined​​ instead of returning an empty object.