UNPKG

@trapi/metadata

Version:

Generate REST-API metadata scheme from TypeScript Decorators.

19 lines 692 B
"use strict"; /* * Copyright (c) 2023. * Author Peter Placzek (tada5hi) * For the full copyright and license information, * view the LICENSE file that was distributed with this source code. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.isMetadata = void 0; const locter_1 = require("locter"); function isMetadata(input) { return (0, locter_1.isObject)(input) && (0, locter_1.hasOwnProperty)(input, 'controllers') && Array.isArray(input.controllers) && (0, locter_1.hasOwnProperty)(input, 'referenceTypes') && (0, locter_1.isObject)(input.referenceTypes); } exports.isMetadata = isMetadata; //# sourceMappingURL=utils.js.map