Rewrite runner.ts

I rewrote runner.ts.

This is to facilitate the addition of the test pattern in the future.
I have developed a suite of test tscparams is really necessary. (not include this PR, https://github.com/vvakame/DefinitelyTyped/commit/df06bec021529d8eaead2e19c0c6bfa9cc60a2f9#diff-1 )

I hope you like it :)