You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
696 B
22 lines
696 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const utils_1 = require("./utils");
|
|
exports.templateRegistion = [
|
|
{
|
|
templateType: 'fetch',
|
|
templateFileName: 'fetch.ts'
|
|
},
|
|
{
|
|
templateType: 'hooks',
|
|
templateFileName: 'hooks.ts'
|
|
}
|
|
];
|
|
function getTemplateByTemplateType(templateType = 'fetch') {
|
|
const templateObj = exports.templateRegistion.find(template => templateType === template.templateType);
|
|
if (templateObj) {
|
|
return utils_1.getTemplatesDirFile(templateObj.templateFileName);
|
|
}
|
|
return '';
|
|
}
|
|
exports.getTemplateByTemplateType = getTemplateByTemplateType;
|
|
//# sourceMappingURL=templates.js.map
|