docs: def typescript_compile(source):
      """Compiles the given ``source`` from TypeScript to ES5 using TypescriptServices.js"""
      with open(TS_COMPILER, 'r') as tsservices_js:
          return evaljs(
              (tsservices_js.read(),
               'ts.transpile(dukpy.tscode, {options});'.format(options=TSC_OPTIONS)),
              tscode=source
          )