@builder.io/mitosis
Version:
Write components once, run everywhere. Compiles to Vue, React, Solid, and Liquid. Import code from Figma and Builder.io
11 lines (10 loc) • 505 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkShouldOutputTypeScript = void 0;
const nullable_1 = require("./nullable");
const checkShouldOutputTypeScript = ({ target, options, }) => {
var _a;
const targetTsConfig = (_a = options.options[target]) === null || _a === void 0 ? void 0 : _a.typescript;
return (0, nullable_1.checkIsDefined)(targetTsConfig) ? targetTsConfig : false;
};
exports.checkShouldOutputTypeScript = checkShouldOutputTypeScript;
;