@trapi/metadata 1.0.0-alpha.7 → 1.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/dist/cache/driver.d.ts +13 -13
  2. package/dist/cache/driver.js +83 -83
  3. package/dist/cache/index.d.ts +3 -3
  4. package/dist/cache/index.js +25 -25
  5. package/dist/cache/type.d.ts +32 -32
  6. package/dist/cache/type.js +8 -8
  7. package/dist/cache/utils.d.ts +3 -3
  8. package/dist/cache/utils.js +52 -52
  9. package/dist/config/index.d.ts +1 -1
  10. package/dist/config/index.js +23 -23
  11. package/dist/config/type.d.ts +36 -36
  12. package/dist/config/type.js +8 -8
  13. package/dist/decorator/constants.d.ts +40 -40
  14. package/dist/decorator/constants.js +52 -52
  15. package/dist/decorator/index.d.ts +6 -6
  16. package/dist/decorator/index.js +28 -28
  17. package/dist/decorator/preset/index.d.ts +2 -2
  18. package/dist/decorator/preset/index.js +24 -24
  19. package/dist/decorator/preset/type.d.ts +5 -5
  20. package/dist/decorator/preset/type.js +8 -8
  21. package/dist/decorator/preset/utils/check.d.ts +2 -2
  22. package/dist/decorator/preset/utils/check.js +17 -17
  23. package/dist/decorator/preset/utils/index.d.ts +3 -3
  24. package/dist/decorator/preset/utils/index.js +25 -25
  25. package/dist/decorator/preset/utils/load.d.ts +2 -2
  26. package/dist/decorator/preset/utils/load.js +44 -44
  27. package/dist/decorator/preset/utils/normalize.d.ts +1 -1
  28. package/dist/decorator/preset/utils/normalize.js +26 -26
  29. package/dist/decorator/property-manager/index.d.ts +2 -2
  30. package/dist/decorator/property-manager/index.js +24 -24
  31. package/dist/decorator/property-manager/module.d.ts +16 -16
  32. package/dist/decorator/property-manager/module.js +58 -58
  33. package/dist/decorator/property-manager/utils.d.ts +5 -5
  34. package/dist/decorator/property-manager/utils.js +91 -91
  35. package/dist/decorator/resolver/index.d.ts +2 -2
  36. package/dist/decorator/resolver/index.js +24 -24
  37. package/dist/decorator/resolver/module.d.ts +26 -26
  38. package/dist/decorator/resolver/module.js +71 -71
  39. package/dist/decorator/resolver/type.d.ts +9 -9
  40. package/dist/decorator/resolver/type.js +2 -2
  41. package/dist/decorator/sets/class.d.ts +6 -6
  42. package/dist/decorator/sets/class.js +8 -8
  43. package/dist/decorator/sets/index.d.ts +7 -7
  44. package/dist/decorator/sets/index.js +28 -28
  45. package/dist/decorator/sets/method.d.ts +13 -13
  46. package/dist/decorator/sets/method.js +8 -8
  47. package/dist/decorator/sets/mixed.d.ts +11 -11
  48. package/dist/decorator/sets/mixed.js +8 -8
  49. package/dist/decorator/sets/parameter.d.ts +20 -20
  50. package/dist/decorator/sets/parameter.js +8 -8
  51. package/dist/decorator/sets/request.d.ts +5 -5
  52. package/dist/decorator/sets/request.js +8 -8
  53. package/dist/decorator/sets/response.d.ts +16 -16
  54. package/dist/decorator/sets/response.js +8 -8
  55. package/dist/decorator/sets/type.d.ts +3 -3
  56. package/dist/decorator/sets/type.js +2 -2
  57. package/dist/decorator/type.d.ts +31 -31
  58. package/dist/decorator/type.js +8 -8
  59. package/dist/error/base.d.ts +2 -2
  60. package/dist/error/base.js +12 -12
  61. package/dist/error/index.d.ts +1 -1
  62. package/dist/error/index.js +23 -23
  63. package/dist/generator/abstract.d.ts +18 -18
  64. package/dist/generator/abstract.js +150 -150
  65. package/dist/generator/abstract.js.map +1 -1
  66. package/dist/generator/controller/index.d.ts +2 -2
  67. package/dist/generator/controller/index.js +24 -24
  68. package/dist/generator/controller/module.d.ts +12 -12
  69. package/dist/generator/controller/module.js +67 -67
  70. package/dist/generator/controller/type.d.ts +46 -46
  71. package/dist/generator/controller/type.js +2 -2
  72. package/dist/generator/index.d.ts +6 -6
  73. package/dist/generator/index.js +28 -28
  74. package/dist/generator/metadata/index.d.ts +3 -3
  75. package/dist/generator/metadata/index.js +25 -25
  76. package/dist/generator/metadata/module.d.ts +38 -38
  77. package/dist/generator/metadata/module.js +142 -142
  78. package/dist/generator/metadata/type.d.ts +24 -24
  79. package/dist/generator/metadata/type.js +2 -2
  80. package/dist/generator/metadata/utils.d.ts +2 -2
  81. package/dist/generator/metadata/utils.js +18 -18
  82. package/dist/generator/method/constants.d.ts +10 -10
  83. package/dist/generator/method/constants.js +20 -20
  84. package/dist/generator/method/index.d.ts +3 -3
  85. package/dist/generator/method/index.js +25 -25
  86. package/dist/generator/method/module.d.ts +18 -18
  87. package/dist/generator/method/module.js +187 -187
  88. package/dist/generator/method/type.d.ts +22 -22
  89. package/dist/generator/method/type.js +8 -8
  90. package/dist/generator/parameter/constants.d.ts +18 -18
  91. package/dist/generator/parameter/constants.js +29 -29
  92. package/dist/generator/parameter/error.d.ts +34 -34
  93. package/dist/generator/parameter/error.js +67 -67
  94. package/dist/generator/parameter/index.d.ts +4 -4
  95. package/dist/generator/parameter/index.js +26 -26
  96. package/dist/generator/parameter/module.d.ts +28 -28
  97. package/dist/generator/parameter/module.js +555 -555
  98. package/dist/generator/parameter/type.d.ts +24 -24
  99. package/dist/generator/parameter/type.js +8 -8
  100. package/dist/generator/type.d.ts +19 -19
  101. package/dist/generator/type.js +8 -8
  102. package/dist/index.d.ts +9 -9
  103. package/dist/index.js +31 -31
  104. package/dist/module.d.ts +4 -4
  105. package/dist/module.js +40 -40
  106. package/dist/resolver/constants.d.ts +26 -26
  107. package/dist/resolver/constants.js +36 -36
  108. package/dist/resolver/error.d.ts +7 -7
  109. package/dist/resolver/error.js +40 -40
  110. package/dist/resolver/extension/index.d.ts +2 -2
  111. package/dist/resolver/extension/index.js +24 -24
  112. package/dist/resolver/extension/module.d.ts +4 -4
  113. package/dist/resolver/extension/module.js +26 -26
  114. package/dist/resolver/extension/type.d.ts +7 -7
  115. package/dist/resolver/extension/type.js +8 -8
  116. package/dist/resolver/index.d.ts +5 -5
  117. package/dist/resolver/index.js +27 -27
  118. package/dist/resolver/module.d.ts +53 -53
  119. package/dist/resolver/module.js +1102 -1102
  120. package/dist/resolver/type.d.ts +138 -138
  121. package/dist/resolver/type.js +129 -129
  122. package/dist/type.d.ts +1 -1
  123. package/dist/type.js +8 -8
  124. package/dist/utils/array.d.ts +2 -0
  125. package/dist/utils/array.d.ts.map +1 -0
  126. package/dist/utils/array.js +22 -0
  127. package/dist/utils/array.js.map +1 -0
  128. package/dist/utils/index.d.ts +9 -8
  129. package/dist/utils/index.d.ts.map +1 -1
  130. package/dist/utils/index.js +31 -30
  131. package/dist/utils/index.js.map +1 -1
  132. package/dist/utils/initializer.d.ts +4 -4
  133. package/dist/utils/initializer.js +130 -130
  134. package/dist/utils/js-doc/constants.d.ts +18 -18
  135. package/dist/utils/js-doc/constants.js +29 -29
  136. package/dist/utils/js-doc/index.d.ts +3 -3
  137. package/dist/utils/js-doc/index.js +25 -25
  138. package/dist/utils/js-doc/module.d.ts +8 -8
  139. package/dist/utils/js-doc/module.js +97 -97
  140. package/dist/utils/js-doc/utils.d.ts +2 -2
  141. package/dist/utils/js-doc/utils.js +28 -28
  142. package/dist/utils/node/index.d.ts +2 -2
  143. package/dist/utils/node/index.js +24 -24
  144. package/dist/utils/node/module.d.ts +9 -9
  145. package/dist/utils/node/module.js +51 -51
  146. package/dist/utils/node/type.d.ts +5 -5
  147. package/dist/utils/node/type.js +8 -8
  148. package/dist/utils/object.d.ts +1 -1
  149. package/dist/utils/object.js +14 -14
  150. package/dist/utils/path-normalize.d.ts +1 -1
  151. package/dist/utils/path-normalize.js +16 -16
  152. package/dist/utils/source-files.d.ts +2 -2
  153. package/dist/utils/source-files.js +31 -31
  154. package/dist/utils/tsconfig/index.d.ts +2 -2
  155. package/dist/utils/tsconfig/index.js +24 -24
  156. package/dist/utils/tsconfig/module.d.ts +3 -3
  157. package/dist/utils/tsconfig/module.js +53 -53
  158. package/dist/utils/tsconfig/type.d.ts +10 -10
  159. package/dist/utils/tsconfig/type.js +8 -8
  160. package/dist/utils/validator/constants.d.ts +12 -12
  161. package/dist/utils/validator/constants.js +22 -22
  162. package/dist/utils/validator/index.d.ts +3 -3
  163. package/dist/utils/validator/index.js +25 -25
  164. package/dist/utils/validator/module.d.ts +3 -3
  165. package/dist/utils/validator/module.js +141 -141
  166. package/dist/utils/validator/type.d.ts +5 -5
  167. package/dist/utils/validator/type.js +8 -8
  168. package/package.json +5 -6
@@ -1,30 +1,30 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.CollectionFormat = exports.ParameterSource = void 0;
10
- var ParameterSource;
11
- (function (ParameterSource) {
12
- ParameterSource["BODY"] = "body";
13
- ParameterSource["BODY_PROP"] = "bodyProp";
14
- ParameterSource["CONTEXT"] = "context";
15
- ParameterSource["COOKIE"] = "cookie";
16
- ParameterSource["HEADER"] = "header";
17
- ParameterSource["FORM_DATA"] = "formData";
18
- ParameterSource["QUERY"] = "query";
19
- ParameterSource["QUERY_PROP"] = "queryProp";
20
- ParameterSource["PATH"] = "path";
21
- })(ParameterSource = exports.ParameterSource || (exports.ParameterSource = {}));
22
- var CollectionFormat;
23
- (function (CollectionFormat) {
24
- CollectionFormat["CSV"] = "csv";
25
- CollectionFormat["SSV"] = "ssv";
26
- CollectionFormat["TSV"] = "tsv";
27
- CollectionFormat["PIPES"] = "pipes";
28
- CollectionFormat["MULTI"] = "multi";
29
- })(CollectionFormat = exports.CollectionFormat || (exports.CollectionFormat = {}));
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.CollectionFormat = exports.ParameterSource = void 0;
10
+ var ParameterSource;
11
+ (function (ParameterSource) {
12
+ ParameterSource["BODY"] = "body";
13
+ ParameterSource["BODY_PROP"] = "bodyProp";
14
+ ParameterSource["CONTEXT"] = "context";
15
+ ParameterSource["COOKIE"] = "cookie";
16
+ ParameterSource["HEADER"] = "header";
17
+ ParameterSource["FORM_DATA"] = "formData";
18
+ ParameterSource["QUERY"] = "query";
19
+ ParameterSource["QUERY_PROP"] = "queryProp";
20
+ ParameterSource["PATH"] = "path";
21
+ })(ParameterSource = exports.ParameterSource || (exports.ParameterSource = {}));
22
+ var CollectionFormat;
23
+ (function (CollectionFormat) {
24
+ CollectionFormat["CSV"] = "csv";
25
+ CollectionFormat["SSV"] = "ssv";
26
+ CollectionFormat["TSV"] = "tsv";
27
+ CollectionFormat["PIPES"] = "pipes";
28
+ CollectionFormat["MULTI"] = "multi";
29
+ })(CollectionFormat = exports.CollectionFormat || (exports.CollectionFormat = {}));
30
30
  //# sourceMappingURL=constants.js.map
@@ -1,35 +1,35 @@
1
- import type { Node } from 'typescript';
2
- import { BaseError } from '../../error';
3
- import type { BaseType } from '../../resolver';
4
- type UnsupportedTypeContext = {
5
- decoratorName: string;
6
- propertyName: string;
7
- type: BaseType;
8
- node?: Node;
9
- };
10
- type UnsupportedMethodContext = {
11
- decoratorName: string;
12
- propertyName: string;
13
- method: string;
14
- node?: Node;
15
- };
16
- type PathMatchInvalidContext = {
17
- decoratorName: string;
18
- propertyName: string;
19
- path: string;
20
- node?: Node;
21
- };
22
- type ScopeRequiredContext = {
23
- decoratorName: string;
24
- node?: Node;
25
- };
26
- export declare class ParameterError extends BaseError {
27
- static typeUnsupported(context: UnsupportedTypeContext): ParameterError;
28
- static methodUnsupported(context: UnsupportedMethodContext): ParameterError;
29
- static invalidPathMatch(context: PathMatchInvalidContext): ParameterError;
30
- static scopeRequired(context: ScopeRequiredContext): ParameterError;
31
- static invalidExampleSchema(): ParameterError;
32
- static getCurrentLocation(node: Node): string;
33
- }
34
- export {};
1
+ import type { Node } from 'typescript';
2
+ import { BaseError } from '../../error';
3
+ import type { BaseType } from '../../resolver';
4
+ type UnsupportedTypeContext = {
5
+ decoratorName: string;
6
+ propertyName: string;
7
+ type: BaseType;
8
+ node?: Node;
9
+ };
10
+ type UnsupportedMethodContext = {
11
+ decoratorName: string;
12
+ propertyName: string;
13
+ method: string;
14
+ node?: Node;
15
+ };
16
+ type PathMatchInvalidContext = {
17
+ decoratorName: string;
18
+ propertyName: string;
19
+ path: string;
20
+ node?: Node;
21
+ };
22
+ type ScopeRequiredContext = {
23
+ decoratorName: string;
24
+ node?: Node;
25
+ };
26
+ export declare class ParameterError extends BaseError {
27
+ static typeUnsupported(context: UnsupportedTypeContext): ParameterError;
28
+ static methodUnsupported(context: UnsupportedMethodContext): ParameterError;
29
+ static invalidPathMatch(context: PathMatchInvalidContext): ParameterError;
30
+ static scopeRequired(context: ScopeRequiredContext): ParameterError;
31
+ static invalidExampleSchema(): ParameterError;
32
+ static getCurrentLocation(node: Node): string;
33
+ }
34
+ export {};
35
35
  //# sourceMappingURL=error.d.ts.map
@@ -1,68 +1,68 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ParameterError = void 0;
4
- /*
5
- * Copyright (c) 2022-2023.
6
- * Author Peter Placzek (tada5hi)
7
- * For the full copyright and license information,
8
- * view the LICENSE file that was distributed with this source code.
9
- */
10
- const typescript_1 = require("typescript");
11
- const error_1 = require("../../error");
12
- class ParameterError extends error_1.BaseError {
13
- static typeUnsupported(context) {
14
- let text = `@${context.decoratorName}('${context.propertyName}') Does not support '${context.type.typeName}' type`;
15
- if (context.node) {
16
- const location = ParameterError.getCurrentLocation(context.node);
17
- if (location) {
18
- text += ` at location ${location}`;
19
- }
20
- }
21
- return new ParameterError(`${text}.`);
22
- }
23
- static methodUnsupported(context) {
24
- let text = `@${context.decoratorName}('${context.propertyName}') Does not support method ${context.method}`;
25
- if (context.node) {
26
- const location = ParameterError.getCurrentLocation(context.node);
27
- if (location) {
28
- text += ` at location ${location}`;
29
- }
30
- }
31
- return new ParameterError(`${text}.`);
32
- }
33
- static invalidPathMatch(context) {
34
- let text = `@${context.decoratorName}('${context.propertyName}') Does not exist in path ${context.path}`;
35
- if (context.node) {
36
- const location = ParameterError.getCurrentLocation(context.node);
37
- if (location) {
38
- text += ` at location ${location}`;
39
- }
40
- }
41
- return new ParameterError(`${text}.`);
42
- }
43
- static scopeRequired(context) {
44
- let text = `@${context.decoratorName}(xxx) a scope is required`;
45
- if (context.node) {
46
- const location = ParameterError.getCurrentLocation(context.node);
47
- if (location) {
48
- text += ` at location ${location}`;
49
- }
50
- }
51
- return new ParameterError(`${text}.`);
52
- }
53
- static invalidExampleSchema() {
54
- return new ParameterError('The example jsdoc schema is invalid.');
55
- }
56
- static getCurrentLocation(node) {
57
- const parts = [];
58
- if ((0, typescript_1.isMethodDeclaration)(node.parent)) {
59
- parts.push(node.parent.name.getText());
60
- if ((0, typescript_1.isClassDeclaration)(node.parent.parent)) {
61
- parts.unshift(node.parent.parent.name.text);
62
- }
63
- }
64
- return parts.join('.');
65
- }
66
- }
67
- exports.ParameterError = ParameterError;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ParameterError = void 0;
4
+ /*
5
+ * Copyright (c) 2022-2023.
6
+ * Author Peter Placzek (tada5hi)
7
+ * For the full copyright and license information,
8
+ * view the LICENSE file that was distributed with this source code.
9
+ */
10
+ const typescript_1 = require("typescript");
11
+ const error_1 = require("../../error");
12
+ class ParameterError extends error_1.BaseError {
13
+ static typeUnsupported(context) {
14
+ let text = `@${context.decoratorName}('${context.propertyName}') Does not support '${context.type.typeName}' type`;
15
+ if (context.node) {
16
+ const location = ParameterError.getCurrentLocation(context.node);
17
+ if (location) {
18
+ text += ` at location ${location}`;
19
+ }
20
+ }
21
+ return new ParameterError(`${text}.`);
22
+ }
23
+ static methodUnsupported(context) {
24
+ let text = `@${context.decoratorName}('${context.propertyName}') Does not support method ${context.method}`;
25
+ if (context.node) {
26
+ const location = ParameterError.getCurrentLocation(context.node);
27
+ if (location) {
28
+ text += ` at location ${location}`;
29
+ }
30
+ }
31
+ return new ParameterError(`${text}.`);
32
+ }
33
+ static invalidPathMatch(context) {
34
+ let text = `@${context.decoratorName}('${context.propertyName}') Does not exist in path ${context.path}`;
35
+ if (context.node) {
36
+ const location = ParameterError.getCurrentLocation(context.node);
37
+ if (location) {
38
+ text += ` at location ${location}`;
39
+ }
40
+ }
41
+ return new ParameterError(`${text}.`);
42
+ }
43
+ static scopeRequired(context) {
44
+ let text = `@${context.decoratorName}(xxx) a scope is required`;
45
+ if (context.node) {
46
+ const location = ParameterError.getCurrentLocation(context.node);
47
+ if (location) {
48
+ text += ` at location ${location}`;
49
+ }
50
+ }
51
+ return new ParameterError(`${text}.`);
52
+ }
53
+ static invalidExampleSchema() {
54
+ return new ParameterError('The example jsdoc schema is invalid.');
55
+ }
56
+ static getCurrentLocation(node) {
57
+ const parts = [];
58
+ if ((0, typescript_1.isMethodDeclaration)(node.parent)) {
59
+ parts.push(node.parent.name.getText());
60
+ if ((0, typescript_1.isClassDeclaration)(node.parent.parent)) {
61
+ parts.unshift(node.parent.parent.name.text);
62
+ }
63
+ }
64
+ return parts.join('.');
65
+ }
66
+ }
67
+ exports.ParameterError = ParameterError;
68
68
  //# sourceMappingURL=error.js.map
@@ -1,5 +1,5 @@
1
- export * from './constants';
2
- export * from './error';
3
- export * from './module';
4
- export * from './type';
1
+ export * from './constants';
2
+ export * from './error';
3
+ export * from './module';
4
+ export * from './type';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,27 +1,27 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2023.
4
- * Author Peter Placzek (tada5hi)
5
- * For the full copyright and license information,
6
- * view the LICENSE file that was distributed with this source code.
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
- };
22
- Object.defineProperty(exports, "__esModule", { value: true });
23
- __exportStar(require("./constants"), exports);
24
- __exportStar(require("./error"), exports);
25
- __exportStar(require("./module"), exports);
26
- __exportStar(require("./type"), exports);
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2023.
4
+ * Author Peter Placzek (tada5hi)
5
+ * For the full copyright and license information,
6
+ * view the LICENSE file that was distributed with this source code.
7
+ */
8
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ var desc = Object.getOwnPropertyDescriptor(m, k);
11
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
+ desc = { enumerable: true, get: function() { return m[k]; } };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ }) : (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ }));
19
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ __exportStar(require("./constants"), exports);
24
+ __exportStar(require("./error"), exports);
25
+ __exportStar(require("./module"), exports);
26
+ __exportStar(require("./type"), exports);
27
27
  //# sourceMappingURL=index.js.map
@@ -1,29 +1,29 @@
1
- import * as ts from 'typescript';
2
- import type { MetadataGenerator } from '../metadata';
3
- import type { Parameter } from './type';
4
- export declare class ParameterGenerator {
5
- private readonly parameter;
6
- private readonly method;
7
- private readonly path;
8
- private readonly current;
9
- constructor(parameter: ts.ParameterDeclaration, method: string, path: string, current: MetadataGenerator);
10
- generate(): Parameter[];
11
- private buildParametersForObject;
12
- private getParamParameter;
13
- private getContextParameter;
14
- private getFileParameter;
15
- private getFormParameter;
16
- private getCookieParameter;
17
- private getBodyParameter;
18
- private getHeaderParameter;
19
- private getQueryParameter;
20
- private isTypeSupportedForQueryParameter;
21
- private getPathParameter;
22
- private getParameterDescription;
23
- private getParameterDeprecation;
24
- private getParameterExample;
25
- private isBodySupportedForMethod;
26
- private isTypeSupported;
27
- private getValidatedType;
28
- }
1
+ import * as ts from 'typescript';
2
+ import type { MetadataGenerator } from '../metadata';
3
+ import type { Parameter } from './type';
4
+ export declare class ParameterGenerator {
5
+ private readonly parameter;
6
+ private readonly method;
7
+ private readonly path;
8
+ private readonly current;
9
+ constructor(parameter: ts.ParameterDeclaration, method: string, path: string, current: MetadataGenerator);
10
+ generate(): Parameter[];
11
+ private buildParametersForObject;
12
+ private getParamParameter;
13
+ private getContextParameter;
14
+ private getFileParameter;
15
+ private getFormParameter;
16
+ private getCookieParameter;
17
+ private getBodyParameter;
18
+ private getHeaderParameter;
19
+ private getQueryParameter;
20
+ private isTypeSupportedForQueryParameter;
21
+ private getPathParameter;
22
+ private getParameterDescription;
23
+ private getParameterDeprecation;
24
+ private getParameterExample;
25
+ private isBodySupportedForMethod;
26
+ private isTypeSupported;
27
+ private getValidatedType;
28
+ }
29
29
  //# sourceMappingURL=module.d.ts.map