@iotechpis/strapi-plugin-schemas-to-ts
Version:
A Strapi plugin that automatically generates Typescript interfaces for Strapi entities and components.
11 lines (10 loc) • 405 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.pluginName = void 0;
const converter_1 = require("./schemas-to-ts/converter");
exports.pluginName = 'schemas-to-ts';
exports.default = ({ strapi }) => {
const config = strapi.config.get(`plugin.${exports.pluginName}`);
const converter = new converter_1.Converter(strapi, config);
converter.SchemasToTs();
};