UNPKG

535 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.getPathForAutoSchemaFile = void 0;
4const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
5function getPathForAutoSchemaFile(autoSchemaFile) {
6 if ((0, shared_utils_1.isString)(autoSchemaFile)) {
7 return autoSchemaFile;
8 }
9 if ((0, shared_utils_1.isObject)(autoSchemaFile) && autoSchemaFile.path) {
10 return autoSchemaFile.path;
11 }
12 return null;
13}
14exports.getPathForAutoSchemaFile = getPathForAutoSchemaFile;