UNPKG

sucrase

Version:

Super-fast alternative to Babel for when you can target modern JS runtimes

36 lines (31 loc) 1.43 kB
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }/** * This module was automatically generated by `ts-interface-builder` */ var _tsinterfacechecker = require('ts-interface-checker'); var t = _interopRequireWildcard(_tsinterfacechecker); // tslint:disable:object-literal-key-quotes const Transform = t.union( t.lit("jsx"), t.lit("typescript"), t.lit("flow"), t.lit("imports"), t.lit("react-hot-loader"), ); exports.Transform = Transform; const SourceMapOptions = t.iface([], { compiledFilename: "string", }); exports.SourceMapOptions = SourceMapOptions; const Options = t.iface([], { transforms: t.array("Transform"), jsxPragma: t.opt("string"), jsxFragmentPragma: t.opt("string"), enableLegacyTypeScriptModuleInterop: t.opt("boolean"), enableLegacyBabel5ModuleInterop: t.opt("boolean"), sourceMapOptions: t.opt("SourceMapOptions"), filePath: t.opt("string"), production: t.opt("boolean"), }); exports.Options = Options; const exportedTypeSuite = { Transform: exports.Transform, SourceMapOptions: exports.SourceMapOptions, Options: exports.Options, }; exports. default = exportedTypeSuite;