1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.getPathForAutoSchemaFile = void 0;
|
4 | const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
|
5 | function 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 | }
|
14 | exports.getPathForAutoSchemaFile = getPathForAutoSchemaFile;
|