UNPKG

skaya

Version:

CLI SDK for full-stack automation: scaffold frontend, backend & blockchain. Future-ready for Web3, integrations, server components & logging.

25 lines (24 loc) 742 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isValidProjectType = isValidProjectType; exports.isValidFrontendComponent = isValidFrontendComponent; exports.isValidBackendComponent = isValidBackendComponent; const enums_1 = require("../types/enums"); /** * Validates project type */ function isValidProjectType(type) { return Object.values(enums_1.ProjectType).includes(type); } /** * Validates frontend component type */ function isValidFrontendComponent(type) { return Object.values(enums_1.FrontendComponentType).includes(type); } /** * Validates backend component type */ function isValidBackendComponent(type) { return Object.values(enums_1.BackendComponentType).includes(type); }