@teambit/semantics.entities.semantic-schema 0.0.78 → 0.0.79

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 (140) hide show
  1. package/dist/api-schema.d.ts +3 -3
  2. package/dist/api-schema.js +160 -115
  3. package/dist/api-schema.js.map +1 -1
  4. package/dist/export.d.ts +2 -2
  5. package/dist/export.js +27 -23
  6. package/dist/export.js.map +1 -1
  7. package/dist/index.js +134 -39
  8. package/dist/index.js.map +1 -1
  9. package/dist/schema-node-constructor.js +1 -1
  10. package/dist/schema-node-constructor.js.map +1 -1
  11. package/dist/schema-node.js +45 -40
  12. package/dist/schema-node.js.map +1 -1
  13. package/dist/schema-registry.js +36 -23
  14. package/dist/schema-registry.js.map +1 -1
  15. package/dist/schemas/array-literal-expression.js +43 -23
  16. package/dist/schemas/array-literal-expression.js.map +1 -1
  17. package/dist/schemas/class.d.ts +17 -17
  18. package/dist/schemas/class.js +116 -83
  19. package/dist/schemas/class.js.map +1 -1
  20. package/dist/schemas/conditional-type.js +58 -36
  21. package/dist/schemas/conditional-type.js.map +1 -1
  22. package/dist/schemas/constructor.js +46 -18
  23. package/dist/schemas/constructor.js.map +1 -1
  24. package/dist/schemas/decorator.d.ts +12 -12
  25. package/dist/schemas/decorator.js +64 -40
  26. package/dist/schemas/decorator.js.map +1 -1
  27. package/dist/schemas/docs/doc.d.ts +10 -10
  28. package/dist/schemas/docs/doc.js +66 -51
  29. package/dist/schemas/docs/doc.js.map +1 -1
  30. package/dist/schemas/docs/index.js +57 -10
  31. package/dist/schemas/docs/index.js.map +1 -1
  32. package/dist/schemas/docs/property-like-tag.d.ts +5 -5
  33. package/dist/schemas/docs/property-like-tag.js +51 -32
  34. package/dist/schemas/docs/property-like-tag.js.map +1 -1
  35. package/dist/schemas/docs/return-tag.d.ts +6 -6
  36. package/dist/schemas/docs/return-tag.js +47 -29
  37. package/dist/schemas/docs/return-tag.js.map +1 -1
  38. package/dist/schemas/docs/tag.d.ts +5 -5
  39. package/dist/schemas/docs/tag.js +68 -58
  40. package/dist/schemas/docs/tag.js.map +1 -1
  41. package/dist/schemas/enum-member.d.ts +11 -11
  42. package/dist/schemas/enum-member.js +59 -40
  43. package/dist/schemas/enum-member.js.map +1 -1
  44. package/dist/schemas/enum.d.ts +8 -8
  45. package/dist/schemas/enum.js +81 -52
  46. package/dist/schemas/enum.js.map +1 -1
  47. package/dist/schemas/export.d.ts +9 -9
  48. package/dist/schemas/export.js +84 -58
  49. package/dist/schemas/export.js.map +1 -1
  50. package/dist/schemas/expression-with-arguments.js +53 -31
  51. package/dist/schemas/expression-with-arguments.js.map +1 -1
  52. package/dist/schemas/function-like.d.ts +16 -16
  53. package/dist/schemas/function-like.js +136 -99
  54. package/dist/schemas/function-like.js.map +1 -1
  55. package/dist/schemas/get-accessor.js +67 -42
  56. package/dist/schemas/get-accessor.js.map +1 -1
  57. package/dist/schemas/ignored.d.ts +1 -1
  58. package/dist/schemas/ignored.js +49 -30
  59. package/dist/schemas/ignored.js.map +1 -1
  60. package/dist/schemas/index-signature.js +55 -28
  61. package/dist/schemas/index-signature.js.map +1 -1
  62. package/dist/schemas/index.js +620 -107
  63. package/dist/schemas/index.js.map +1 -1
  64. package/dist/schemas/indexed-access-type.js +50 -30
  65. package/dist/schemas/indexed-access-type.js.map +1 -1
  66. package/dist/schemas/inference-type.d.ts +8 -8
  67. package/dist/schemas/inference-type.js +54 -38
  68. package/dist/schemas/inference-type.js.map +1 -1
  69. package/dist/schemas/interface.d.ts +11 -11
  70. package/dist/schemas/interface.js +100 -67
  71. package/dist/schemas/interface.js.map +1 -1
  72. package/dist/schemas/keyword-type.js +35 -22
  73. package/dist/schemas/keyword-type.js.map +1 -1
  74. package/dist/schemas/literal-type.js +35 -22
  75. package/dist/schemas/literal-type.js.map +1 -1
  76. package/dist/schemas/literal-value.js +36 -23
  77. package/dist/schemas/literal-value.js.map +1 -1
  78. package/dist/schemas/module.d.ts +1 -1
  79. package/dist/schemas/module.js +81 -57
  80. package/dist/schemas/module.js.map +1 -1
  81. package/dist/schemas/named-tuple.d.ts +3 -3
  82. package/dist/schemas/named-tuple.js +48 -28
  83. package/dist/schemas/named-tuple.js.map +1 -1
  84. package/dist/schemas/object-literal-expression.js +47 -30
  85. package/dist/schemas/object-literal-expression.js.map +1 -1
  86. package/dist/schemas/parameter.d.ts +5 -5
  87. package/dist/schemas/parameter.js +83 -61
  88. package/dist/schemas/parameter.js.map +1 -1
  89. package/dist/schemas/parenthesized-type.js +45 -26
  90. package/dist/schemas/parenthesized-type.js.map +1 -1
  91. package/dist/schemas/property-assignment.d.ts +10 -10
  92. package/dist/schemas/property-assignment.js +61 -34
  93. package/dist/schemas/property-assignment.js.map +1 -1
  94. package/dist/schemas/set-accessor.d.ts +2 -2
  95. package/dist/schemas/set-accessor.js +60 -35
  96. package/dist/schemas/set-accessor.js.map +1 -1
  97. package/dist/schemas/template-literal-type-span.js +48 -28
  98. package/dist/schemas/template-literal-type-span.js.map +1 -1
  99. package/dist/schemas/template-literal-type.js +47 -27
  100. package/dist/schemas/template-literal-type.js.map +1 -1
  101. package/dist/schemas/this-type.js +29 -19
  102. package/dist/schemas/this-type.js.map +1 -1
  103. package/dist/schemas/tuple-type.js +42 -23
  104. package/dist/schemas/tuple-type.js.map +1 -1
  105. package/dist/schemas/type-array.js +45 -26
  106. package/dist/schemas/type-array.js.map +1 -1
  107. package/dist/schemas/type-intersection.js +45 -26
  108. package/dist/schemas/type-intersection.js.map +1 -1
  109. package/dist/schemas/type-literal.js +56 -37
  110. package/dist/schemas/type-literal.js.map +1 -1
  111. package/dist/schemas/type-operator.js +48 -28
  112. package/dist/schemas/type-operator.js.map +1 -1
  113. package/dist/schemas/type-predicate.d.ts +1 -1
  114. package/dist/schemas/type-predicate.js +56 -36
  115. package/dist/schemas/type-predicate.js.map +1 -1
  116. package/dist/schemas/type-query.js +51 -31
  117. package/dist/schemas/type-query.js.map +1 -1
  118. package/dist/schemas/type-ref.d.ts +8 -8
  119. package/dist/schemas/type-ref.js +138 -101
  120. package/dist/schemas/type-ref.js.map +1 -1
  121. package/dist/schemas/type-union.js +50 -31
  122. package/dist/schemas/type-union.js.map +1 -1
  123. package/dist/schemas/type.js +74 -43
  124. package/dist/schemas/type.js.map +1 -1
  125. package/dist/schemas/unimplemented-schema.js +37 -24
  126. package/dist/schemas/unimplemented-schema.js.map +1 -1
  127. package/dist/schemas/unknown-schema.js +37 -24
  128. package/dist/schemas/unknown-schema.js.map +1 -1
  129. package/dist/schemas/unresolved-schema.js +32 -22
  130. package/dist/schemas/unresolved-schema.js.map +1 -1
  131. package/dist/schemas/variable-like.d.ts +11 -11
  132. package/dist/schemas/variable-like.js +84 -51
  133. package/dist/schemas/variable-like.js.map +1 -1
  134. package/dist/type.js +1 -1
  135. package/dist/type.js.map +1 -1
  136. package/dist/unknown-schema-factory.js +13 -7
  137. package/dist/unknown-schema-factory.js.map +1 -1
  138. package/package.json +4 -4
  139. package/types/asset.d.ts +15 -3
  140. package/dist/preview-1737084088495.js +0 -7
@@ -1,12 +1,59 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyLikeTagSchema = exports.ReturnTagSchema = exports.TagSchema = exports.DocSchema = void 0;
4
- var doc_1 = require("./doc");
5
- Object.defineProperty(exports, "DocSchema", { enumerable: true, get: function () { return doc_1.DocSchema; } });
6
- var tag_1 = require("./tag");
7
- Object.defineProperty(exports, "TagSchema", { enumerable: true, get: function () { return tag_1.TagSchema; } });
8
- var return_tag_1 = require("./return-tag");
9
- Object.defineProperty(exports, "ReturnTagSchema", { enumerable: true, get: function () { return return_tag_1.ReturnTagSchema; } });
10
- var property_like_tag_1 = require("./property-like-tag");
11
- Object.defineProperty(exports, "PropertyLikeTagSchema", { enumerable: true, get: function () { return property_like_tag_1.PropertyLikeTagSchema; } });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "DocSchema", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _doc().DocSchema;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "PropertyLikeTagSchema", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _propertyLikeTag().PropertyLikeTagSchema;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "ReturnTagSchema", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _returnTag().ReturnTagSchema;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "TagSchema", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _tag().TagSchema;
28
+ }
29
+ });
30
+ function _doc() {
31
+ const data = require("./doc");
32
+ _doc = function () {
33
+ return data;
34
+ };
35
+ return data;
36
+ }
37
+ function _tag() {
38
+ const data = require("./tag");
39
+ _tag = function () {
40
+ return data;
41
+ };
42
+ return data;
43
+ }
44
+ function _returnTag() {
45
+ const data = require("./return-tag");
46
+ _returnTag = function () {
47
+ return data;
48
+ };
49
+ return data;
50
+ }
51
+ function _propertyLikeTag() {
52
+ const data = require("./property-like-tag");
53
+ _propertyLikeTag = function () {
54
+ return data;
55
+ };
56
+ return data;
57
+ }
58
+
12
59
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schemas/docs/index.ts"],"names":[],"mappings":";;;AAAA,6BAAkC;AAAzB,gGAAA,SAAS,OAAA;AAClB,6BAAkC;AAAzB,gGAAA,SAAS,OAAA;AAClB,2CAA+C;AAAtC,6GAAA,eAAe,OAAA;AACxB,yDAA4D;AAAnD,0HAAA,qBAAqB,OAAA"}
1
+ {"version":3,"names":["_doc","data","require","_tag","_returnTag","_propertyLikeTag"],"sources":["index.ts"],"sourcesContent":["export { DocSchema } from './doc';\nexport { TagSchema } from './tag';\nexport { ReturnTagSchema } from './return-tag';\nexport { PropertyLikeTagSchema } from './property-like-tag';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,KAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,IAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,WAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,UAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,iBAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,gBAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA","ignoreList":[]}
@@ -6,21 +6,21 @@ import { TagSchema } from './tag';
6
6
  export declare class PropertyLikeTagSchema extends TagSchema {
7
7
  readonly location: SchemaLocation;
8
8
  readonly name: string;
9
- readonly comment?: string;
9
+ readonly comment?: string | undefined;
10
10
  readonly type?: SchemaNode;
11
- constructor(location: SchemaLocation, name: string, comment?: string, type?: SchemaNode);
11
+ constructor(location: SchemaLocation, name: string, comment?: string | undefined, type?: SchemaNode);
12
12
  toString(): string;
13
13
  toFullSignature(options?: {
14
14
  showDocs?: boolean;
15
15
  }): string;
16
16
  toObject(): {
17
17
  name: string;
18
- type: Record<string, any>;
18
+ type: Record<string, any> | undefined;
19
19
  __schema: string;
20
20
  location: SchemaLocation;
21
- signature: string;
21
+ signature: string | undefined;
22
22
  tagName: string;
23
- comment: string;
23
+ comment: string | undefined;
24
24
  };
25
25
  static fromObject(obj: Record<string, any>): PropertyLikeTagSchema;
26
26
  }
@@ -1,40 +1,59 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.PropertyLikeTagSchema = void 0;
4
- const schema_registry_1 = require("../../schema-registry");
5
- const tag_1 = require("./tag");
7
+ function _schemaRegistry() {
8
+ const data = require("../../schema-registry");
9
+ _schemaRegistry = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _tag() {
15
+ const data = require("./tag");
16
+ _tag = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
6
21
  /**
7
22
  * e.g. `@param myParam {string} some comment`
8
23
  */
9
- class PropertyLikeTagSchema extends tag_1.TagSchema {
10
- constructor(location, name, comment, type) {
11
- super(location, tag_1.TagName.parameter, comment);
12
- this.location = location;
13
- this.name = name;
14
- this.comment = comment;
15
- this.type = type;
16
- }
17
- toString() {
18
- const comment = this.comment ? ` ${this.comment}` : '';
19
- const type = this.type ? ` {${this.type.toString()}} ` : '';
20
- return `@${this.tagName} ${this.name}${type} ${comment}`;
21
- }
22
- toFullSignature(options) {
23
- const typeStr = this.type ? ` {${this.type.toFullSignature(options)}} ` : '';
24
- const comment = this.comment ? ` ${this.comment}` : '';
25
- return `@${this.tagName} ${this.name}${typeStr}${comment}`;
26
- }
27
- toObject() {
28
- var _a;
29
- return Object.assign(Object.assign({}, super.toObject()), { name: this.name, type: (_a = this.type) === null || _a === void 0 ? void 0 : _a.toObject() });
30
- }
31
- static fromObject(obj) {
32
- const location = obj.location;
33
- const name = obj.name;
34
- const comment = obj.comment;
35
- const type = obj.type ? schema_registry_1.SchemaRegistry.fromObject(obj.type) : undefined;
36
- return new PropertyLikeTagSchema(location, name, comment, type);
37
- }
24
+ class PropertyLikeTagSchema extends _tag().TagSchema {
25
+ constructor(location, name, comment, type) {
26
+ super(location, _tag().TagName.parameter, comment);
27
+ this.location = location;
28
+ this.name = name;
29
+ this.comment = comment;
30
+ this.type = type;
31
+ }
32
+ toString() {
33
+ const comment = this.comment ? ` ${this.comment}` : '';
34
+ const type = this.type ? ` {${this.type.toString()}} ` : '';
35
+ return `@${this.tagName} ${this.name}${type} ${comment}`;
36
+ }
37
+ toFullSignature(options) {
38
+ const typeStr = this.type ? ` {${this.type.toFullSignature(options)}} ` : '';
39
+ const comment = this.comment ? ` ${this.comment}` : '';
40
+ return `@${this.tagName} ${this.name}${typeStr}${comment}`;
41
+ }
42
+ toObject() {
43
+ return {
44
+ ...super.toObject(),
45
+ name: this.name,
46
+ type: this.type?.toObject()
47
+ };
48
+ }
49
+ static fromObject(obj) {
50
+ const location = obj.location;
51
+ const name = obj.name;
52
+ const comment = obj.comment;
53
+ const type = obj.type ? _schemaRegistry().SchemaRegistry.fromObject(obj.type) : undefined;
54
+ return new PropertyLikeTagSchema(location, name, comment, type);
55
+ }
38
56
  }
39
57
  exports.PropertyLikeTagSchema = PropertyLikeTagSchema;
58
+
40
59
  //# sourceMappingURL=property-like-tag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"property-like-tag.js","sourceRoot":"","sources":["../../../schemas/docs/property-like-tag.ts"],"names":[],"mappings":";;;AACA,2DAAuD;AACvD,+BAA2C;AAE3C;;GAEG;AACH,MAAa,qBAAsB,SAAQ,eAAS;IAElD,YACW,QAAwB,EACxB,IAAY,EACZ,OAAgB,EACzB,IAAiB;QAEjB,KAAK,CAAC,QAAQ,EAAE,aAAO,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QALnC,aAAQ,GAAR,QAAQ,CAAgB;QACxB,SAAI,GAAJ,IAAI,CAAQ;QACZ,YAAO,GAAP,OAAO,CAAS;QAIzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,QAAQ;QACN,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5D,OAAO,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,IAAI,OAAO,EAAE,CAAC;IAC3D,CAAC;IAED,eAAe,CAAC,OAAgC;QAC9C,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;QAC7E,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,OAAO,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,GAAG,OAAO,GAAG,OAAO,EAAE,CAAC;IAC7D,CAAC;IAED,QAAQ;;QACN,uCACK,KAAK,CAAC,QAAQ,EAAE,KACnB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,IAAI,EAAE,MAAA,IAAI,CAAC,IAAI,0CAAE,QAAQ,EAAE,IAC3B;IACJ,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,GAAwB;QACxC,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC9B,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACtB,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAC5B,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,gCAAc,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACxE,OAAO,IAAI,qBAAqB,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;CACF;AAvCD,sDAuCC"}
1
+ {"version":3,"names":["_schemaRegistry","data","require","_tag","PropertyLikeTagSchema","TagSchema","constructor","location","name","comment","type","TagName","parameter","toString","tagName","toFullSignature","options","typeStr","toObject","fromObject","obj","SchemaRegistry","undefined","exports"],"sources":["property-like-tag.ts"],"sourcesContent":["import { SchemaLocation, SchemaNode } from '../../schema-node';\nimport { SchemaRegistry } from '../../schema-registry';\nimport { TagName, TagSchema } from './tag';\n\n/**\n * e.g. `@param myParam {string} some comment`\n */\nexport class PropertyLikeTagSchema extends TagSchema {\n readonly type?: SchemaNode;\n constructor(\n readonly location: SchemaLocation,\n readonly name: string,\n readonly comment?: string,\n type?: SchemaNode\n ) {\n super(location, TagName.parameter, comment);\n this.type = type;\n }\n\n toString() {\n const comment = this.comment ? ` ${this.comment}` : '';\n const type = this.type ? ` {${this.type.toString()}} ` : '';\n return `@${this.tagName} ${this.name}${type} ${comment}`;\n }\n\n toFullSignature(options?: { showDocs?: boolean }): string {\n const typeStr = this.type ? ` {${this.type.toFullSignature(options)}} ` : '';\n const comment = this.comment ? ` ${this.comment}` : '';\n return `@${this.tagName} ${this.name}${typeStr}${comment}`;\n }\n\n toObject() {\n return {\n ...super.toObject(),\n name: this.name,\n type: this.type?.toObject(),\n };\n }\n\n static fromObject(obj: Record<string, any>): PropertyLikeTagSchema {\n const location = obj.location;\n const name = obj.name;\n const comment = obj.comment;\n const type = obj.type ? SchemaRegistry.fromObject(obj.type) : undefined;\n return new PropertyLikeTagSchema(location, name, comment, type);\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,KAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,IAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA;AACA;AACA;AACO,MAAMG,qBAAqB,SAASC,gBAAS,CAAC;EAEnDC,WAAWA,CACAC,QAAwB,EACxBC,IAAY,EACZC,OAAgB,EACzBC,IAAiB,EACjB;IACA,KAAK,CAACH,QAAQ,EAAEI,cAAO,CAACC,SAAS,EAAEH,OAA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AAGU,GAAG,CAACV,IAAI,GAAGW,gCAAc,CAACF,UAAU,CAACC,GAAG,CAACV,IAAI,CAAC,GAAGY,SAAS;IACvE,OAAO,IAAIlB,qBAAqB,CAACG,QAAQ,EAAEC,IAAI,EAAEC,OAAO,EAAEC,IAAI,CAAC;EACjE;AACF;AAACa,OAAA,CAAAnB,qBAAA,GAAAA,qBAAA","ignoreList":[]}
@@ -5,21 +5,21 @@ import { TagSchema } from './tag';
5
5
  */
6
6
  export declare class ReturnTagSchema extends TagSchema {
7
7
  readonly location: SchemaLocation;
8
- readonly comment?: string;
8
+ readonly comment?: string | undefined;
9
9
  readonly type?: SchemaNode;
10
- constructor(location: SchemaLocation, comment?: string, type?: SchemaNode);
10
+ constructor(location: SchemaLocation, comment?: string | undefined, type?: SchemaNode);
11
11
  toString(): string;
12
12
  toFullSignature(options?: {
13
13
  showDocs?: boolean;
14
14
  }): string;
15
15
  toObject(): {
16
- type: Record<string, any>;
16
+ type: Record<string, any> | undefined;
17
17
  __schema: string;
18
18
  location: SchemaLocation;
19
- name: string;
20
- signature: string;
19
+ name: string | undefined;
20
+ signature: string | undefined;
21
21
  tagName: string;
22
- comment: string;
22
+ comment: string | undefined;
23
23
  };
24
24
  static fromObject(obj: Record<string, any>): ReturnTagSchema;
25
25
  }
@@ -1,37 +1,55 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
3
6
  exports.ReturnTagSchema = void 0;
4
- const schema_registry_1 = require("../../schema-registry");
5
- const tag_1 = require("./tag");
7
+ function _schemaRegistry() {
8
+ const data = require("../../schema-registry");
9
+ _schemaRegistry = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
14
+ function _tag() {
15
+ const data = require("./tag");
16
+ _tag = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
6
21
  /**
7
22
  * e.g. `@return {string} some comment`
8
23
  */
9
- class ReturnTagSchema extends tag_1.TagSchema {
10
- constructor(location, comment, type) {
11
- super(location, tag_1.TagName.return, comment);
12
- this.location = location;
13
- this.comment = comment;
14
- this.type = type;
15
- }
16
- toString() {
17
- const comment = this.comment ? ` ${this.comment}` : '';
18
- return `@${this.tagName}${comment}`;
19
- }
20
- toFullSignature(options) {
21
- const typeStr = this.type ? ` {${this.type.toFullSignature(options)}}` : '';
22
- const comment = this.comment ? ` ${this.comment}` : '';
23
- return `@${this.tagName}${typeStr}${comment}`;
24
- }
25
- toObject() {
26
- var _a;
27
- return Object.assign(Object.assign({}, super.toObject()), { type: (_a = this.type) === null || _a === void 0 ? void 0 : _a.toObject() });
28
- }
29
- static fromObject(obj) {
30
- const location = obj.location;
31
- const comment = obj.comment;
32
- const type = obj.type ? schema_registry_1.SchemaRegistry.fromObject(obj.type) : undefined;
33
- return new ReturnTagSchema(location, comment, type);
34
- }
24
+ class ReturnTagSchema extends _tag().TagSchema {
25
+ constructor(location, comment, type) {
26
+ super(location, _tag().TagName.return, comment);
27
+ this.location = location;
28
+ this.comment = comment;
29
+ this.type = type;
30
+ }
31
+ toString() {
32
+ const comment = this.comment ? ` ${this.comment}` : '';
33
+ return `@${this.tagName}${comment}`;
34
+ }
35
+ toFullSignature(options) {
36
+ const typeStr = this.type ? ` {${this.type.toFullSignature(options)}}` : '';
37
+ const comment = this.comment ? ` ${this.comment}` : '';
38
+ return `@${this.tagName}${typeStr}${comment}`;
39
+ }
40
+ toObject() {
41
+ return {
42
+ ...super.toObject(),
43
+ type: this.type?.toObject()
44
+ };
45
+ }
46
+ static fromObject(obj) {
47
+ const location = obj.location;
48
+ const comment = obj.comment;
49
+ const type = obj.type ? _schemaRegistry().SchemaRegistry.fromObject(obj.type) : undefined;
50
+ return new ReturnTagSchema(location, comment, type);
51
+ }
35
52
  }
36
53
  exports.ReturnTagSchema = ReturnTagSchema;
54
+
37
55
  //# sourceMappingURL=return-tag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"return-tag.js","sourceRoot":"","sources":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AAG,CAAC,IAAI,CAAC,CAAC,CAAC,gCAAc,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACxE,OAAO,IAAI,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;CACF;AApCD,0CAoCC"}
1
+ {"version":3,"names":["_schemaRegistry","data","require","_tag","ReturnTagSchema","TagSchema","constructor","location","comment","type","TagName","return","toString","tagName","toFullSignature","options","typeStr","toObject","fromObject","obj","SchemaRegistry","undefined","exports"],"sources":["return-tag.ts"],"sourcesContent":["import { SchemaLocation, SchemaNode } from '../../schema-node';\nimport { SchemaRegistry } from '../../schema-registry';\nimport { TagName, TagSchema } from './tag';\n\n/**\n * e.g. `@return {string} some comment`\n */\nexport class ReturnTagSchema extends TagSchema {\n readonly type?: SchemaNode;\n\n constructor(\n readonly location: SchemaLocation,\n readonly comment?: string,\n type?: SchemaNode\n ) {\n super(location, TagName.return, comment);\n this.type = type;\n }\n\n toString() {\n const comment = this.comment ? ` ${this.comment}` : '';\n return `@${this.tagName}${comment}`;\n }\n\n toFullSignature(options?: { showDocs?: boolean }): string {\n const typeStr = this.type ? ` {${this.type.toFullSignature(options)}}` : '';\n const comment = this.comment ? ` ${this.comment}` : '';\n return `@${this.tagName}${typeStr}${comment}`;\n }\n\n toObject() {\n return {\n ...super.toObject(),\n type: this.type?.toObject(),\n };\n }\n\n static fromObject(obj: Record<string, any>): ReturnTagSchema {\n const location = obj.location;\n const comment = obj.comment;\n const type = obj.type ? SchemaRegistry.fromObject(obj.type) : undefined;\n return new ReturnTagSchema(location, comment, type);\n }\n}\n"],"mappings":";;;;;;AACA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,KAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;E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Ac,CAACF,UAAU,CAACC,GAAG,CAACV,IAAI,CAAC,GAAGY,SAAS;IACvE,OAAO,IAAIjB,eAAe,CAACG,QAAQ,EAAEC,OAAO,EAAEC,IAAI,CAAC;EACrD;AACF;AAACa,OAAA,CAAAlB,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -5,18 +5,18 @@ import { SchemaLocation, SchemaNode } from '../../schema-node';
5
5
  export declare class TagSchema extends SchemaNode {
6
6
  readonly location: SchemaLocation;
7
7
  readonly tagName: TagName | string;
8
- readonly comment?: string;
9
- constructor(location: SchemaLocation, tagName: TagName | string, comment?: string);
8
+ readonly comment?: string | undefined;
9
+ constructor(location: SchemaLocation, tagName: TagName | string, comment?: string | undefined);
10
10
  toString(): string;
11
11
  toFullSignature(): string;
12
12
  static fromObject(obj: Record<string, any>): TagSchema;
13
13
  toObject(): {
14
14
  __schema: string;
15
15
  location: SchemaLocation;
16
- name: string;
17
- signature: string;
16
+ name: string | undefined;
17
+ signature: string | undefined;
18
18
  tagName: string;
19
- comment: string;
19
+ comment: string | undefined;
20
20
  };
21
21
  }
22
22
  export declare enum TagName {
@@ -1,65 +1,75 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TagName = exports.TagSchema = void 0;
4
- const schema_node_1 = require("../../schema-node");
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TagSchema = exports.TagName = void 0;
7
+ function _schemaNode() {
8
+ const data = require("../../schema-node");
9
+ _schemaNode = function () {
10
+ return data;
11
+ };
12
+ return data;
13
+ }
5
14
  /**
6
15
  * e.g. `@deprecated please use something else`
7
16
  */
8
- class TagSchema extends schema_node_1.SchemaNode {
9
- constructor(location, tagName, comment) {
10
- super();
11
- this.location = location;
12
- this.tagName = tagName;
13
- this.comment = comment;
14
- }
15
- toString() {
16
- const comment = this.comment ? ` ${this.comment}` : '';
17
- return `@${this.tagName}${comment}`;
18
- }
19
- toFullSignature() {
20
- return this.toString();
21
- }
22
- static fromObject(obj) {
23
- const location = obj.location;
24
- const tagName = obj.tagName;
25
- const comment = obj.comment;
26
- return new TagSchema(location, tagName, comment);
27
- }
28
- toObject() {
29
- return {
30
- __schema: this.__schema,
31
- location: this.location,
32
- name: this.name,
33
- signature: this.signature,
34
- tagName: this.tagName,
35
- comment: this.comment,
36
- };
37
- }
17
+ class TagSchema extends _schemaNode().SchemaNode {
18
+ constructor(location, tagName, comment) {
19
+ super();
20
+ this.location = location;
21
+ this.tagName = tagName;
22
+ this.comment = comment;
23
+ }
24
+ toString() {
25
+ const comment = this.comment ? ` ${this.comment}` : '';
26
+ return `@${this.tagName}${comment}`;
27
+ }
28
+ toFullSignature() {
29
+ return this.toString();
30
+ }
31
+ static fromObject(obj) {
32
+ const location = obj.location;
33
+ const tagName = obj.tagName;
34
+ const comment = obj.comment;
35
+ return new TagSchema(location, tagName, comment);
36
+ }
37
+ toObject() {
38
+ return {
39
+ __schema: this.__schema,
40
+ location: this.location,
41
+ name: this.name,
42
+ signature: this.signature,
43
+ tagName: this.tagName,
44
+ comment: this.comment
45
+ };
46
+ }
38
47
  }
39
48
  exports.TagSchema = TagSchema;
40
- var TagName;
41
- (function (TagName) {
42
- TagName["augments"] = "augments";
43
- TagName["author"] = "author";
44
- TagName["class"] = "class";
45
- TagName["callback"] = "callback";
46
- TagName["public"] = "public";
47
- TagName["private"] = "private";
48
- TagName["protected"] = "protected";
49
- TagName["readonly"] = "readonly";
50
- TagName["override"] = "override";
51
- TagName["see"] = "see";
52
- TagName["enum"] = "enum";
53
- TagName["parameter"] = "parameter";
54
- TagName["this"] = "this";
55
- TagName["type"] = "type";
56
- TagName["template"] = "template";
57
- TagName["typedef"] = "typedef";
58
- TagName["property"] = "property";
59
- TagName["implements"] = "implements";
60
- TagName["return"] = "return";
61
- TagName["deprecated"] = "deprecated";
62
- TagName["exports"] = "exports";
63
- TagName["link"] = "link";
64
- })(TagName || (exports.TagName = TagName = {}));
49
+ let TagName = exports.TagName = /*#__PURE__*/function (TagName) {
50
+ TagName["augments"] = "augments";
51
+ TagName["author"] = "author";
52
+ TagName["class"] = "class";
53
+ TagName["callback"] = "callback";
54
+ TagName["public"] = "public";
55
+ TagName["private"] = "private";
56
+ TagName["protected"] = "protected";
57
+ TagName["readonly"] = "readonly";
58
+ TagName["override"] = "override";
59
+ TagName["see"] = "see";
60
+ TagName["enum"] = "enum";
61
+ TagName["parameter"] = "parameter";
62
+ TagName["this"] = "this";
63
+ TagName["type"] = "type";
64
+ TagName["template"] = "template";
65
+ TagName["typedef"] = "typedef";
66
+ TagName["property"] = "property";
67
+ TagName["implements"] = "implements";
68
+ TagName["return"] = "return";
69
+ TagName["deprecated"] = "deprecated";
70
+ TagName["exports"] = "exports";
71
+ TagName["link"] = "link";
72
+ return TagName;
73
+ }({});
74
+
65
75
  //# sourceMappingURL=tag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../schemas/docs/tag.ts"],"names":[],"mappings":";;;AAAA,mDAA+D;AAE/D;;GAEG;AACH,MAAa,SAAU,SAAQ,wBAAU;IACvC,YACW,QAAwB,EACxB,OAAyB,EACzB,OAAgB;QAEzB,KAAK,EAAE,CAAC;QAJC,aAAQ,GAAR,QAAQ,CAAgB;QACxB,YAAO,GAAP,OAAO,CAAkB;QACzB,YAAO,GAAP,OAAO,CAAS;IAG3B,CAAC;IAED,QAAQ;QACN,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,OAAO,IAAI,IAAI,CAAC,OAAO,GAAG,OAAO,EAAE,CAAC;IACtC,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;IACzB,CAAC;IAED,MAAM,CAAC,UAAU,CAAC,GAAwB;QACxC,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC9B,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAC5B,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAC5B,OAAO,IAAI,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IAED,QAAQ;QACN,OAAO;YACL,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;IACJ,CAAC;CACF;AAnCD,8BAmCC;AAED,IAAY,OAuBX;AAvBD,WAAY,OAAO;IACjB,gCAAqB,CAAA;IACrB,4BAAiB,CAAA;IACjB,0BAAe,CAAA;IACf,gCAAqB,CAAA;IACrB,4BAAiB,CAAA;IACjB,8BAAmB,CAAA;IACnB,kCAAuB,CAAA;IACvB,gCAAqB,CAAA;IACrB,gCAAqB,CAAA;IACrB,sBAAW,CAAA;IACX,wBAAa,CAAA;IACb,kCAAuB,CAAA;IACvB,wBAAa,CAAA;IACb,wBAAa,CAAA;IACb,gCAAqB,CAAA;IACrB,8BAAmB,CAAA;IACnB,gCAAqB,CAAA;IACrB,oCAAyB,CAAA;IACzB,4BAAiB,CAAA;IACjB,oCAAyB,CAAA;IACzB,8BAAmB,CAAA;IACnB,wBAAa,CAAA;AACf,CAAC,EAvBW,OAAO,uBAAP,OAAO,QAuBlB"}
1
+ {"version":3,"names":["_schemaNode","data","require","TagSchema","SchemaNode","constructor","location","tagName","comment","toString","toFullSignature","fromObject","obj","toObject","__schema","name","signature","exports","TagName"],"sources":["tag.ts"],"sourcesContent":["import { SchemaLocation, SchemaNode } from '../../schema-node';\n\n/**\n * e.g. `@deprecated please use something else`\n */\nexport class TagSchema extends SchemaNode {\n constructor(\n readonly location: SchemaLocation,\n readonly tagName: TagName | string,\n readonly comment?: string\n ) {\n super();\n }\n\n toString() {\n const comment = this.comment ? ` ${this.comment}` : '';\n return `@${this.tagName}${comment}`;\n }\n\n toFullSignature(): string {\n return this.toString();\n }\n\n static fromObject(obj: Record<string, any>): TagSchema {\n const location = obj.location;\n const tagName = obj.tagName;\n const comment = obj.comment;\n return new TagSchema(location, tagName, comment);\n }\n\n toObject() {\n return {\n __schema: this.__schema,\n location: this.location,\n name: this.name,\n signature: this.signature,\n tagName: this.tagName,\n comment: this.comment,\n };\n }\n}\n\nexport enum TagName {\n augments = 'augments',\n author = 'author',\n class = 'class',\n callback = 'callback',\n public = 'public',\n private = 'private',\n protected = 'protected',\n readonly = 'readonly',\n override = 'override',\n see = 'see',\n enum = 'enum',\n parameter = 'parameter',\n this = 'this',\n type = 'type',\n template = 'template',\n typedef = 'typedef',\n property = 'property',\n implements = 'implements',\n return = 'return',\n deprecated = 'deprecated',\n exports = 'exports',\n link = 'link',\n}\n"],"mappings":";;;;;;AAAA,SAAAA,YAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,WAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA;AACA;AACA;AACO,MAAME,SAAS,SAASC,wBAAU,CAAC;EACxCC,WAAWA,CACAC,QAAwB,EACxBC,OAAyB,EACzBC,OAAgB,EACzB;IACA,KAAK,CAAC,CAAC;IAAC,KAJCF,QAAwB,GAAxBA,QAAwB;IAAA,KACxBC,OAAyB,GAAzBA,OAAyB;IAAA,KACzBC,OAAgB,GAAhBA,OAAgB;EAG3B;EAEAC,QAAQA,CAAA,EAAG;IACT,MAAMD,OAAO,GAAG,IAAI,CAACA,OAAO,GAAG,IAAI,IAAI,CAACA,OAAO,EAAE,GAAG,EAAE;IACtD,OAAO,IAAI,IAAI,CAACD,OAAO,GAAGC,OAAO,EAAE;EACrC;EAEAE,eAAeA,CAAA,EAAW;IACxB,OAAO,IAAI,CAACD,QAAQ,CAAC,CAAC;EACxB;EAEA,OAAOE,UAAUA,CAACC,GAAwB,EAAa;IACrD,MAAMN,QAAQ,GAAGM,GAAG,CAACN,QAAQ;IAC7B,MAAMC,OAAO,GAAGK,GAAG,CAACL,OAAO;IAC3B,MAAMC,OAAO,GAAGI,GAAG,CAACJ,OAAO;IAC3B,OAAO,IAAIL,SAAS,CAACG,QAAQ,EAAEC,OAAO,EAAEC,OAAO,CAAC;EAClD;EAEAK,QAAQA,CAAA,EAAG;IACT,OAAO;MACLC,QAAQ,EAAE,IAAI,CAACA,QAAQ;MACvBR,QAAQ,EAAE,IAAI,CAACA,QAAQ;MACvBS,IAAI,EAAE,IAAI,CAACA,IAAI;MACfC,SAAS,EAAE,IAAI,CAACA,SAAS;MACzBT,OAAO,EAAE,IAAI,CAACA,OAAO;MACrBC,OAAO,EAAE,IAAI,CAACA;IAChB,CAAC;EACH;AACF;AAACS,OAAA,CAAAd,SAAA,GAAAA,SAAA;AAAA,IAEWe,OAAO,GAAAD,OAAA,CAAAC,OAAA,0BAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAPA,OAAO;EAAA,OAAPA,OAAO;AAAA","ignoreList":[]}
@@ -4,9 +4,9 @@ export declare class EnumMemberSchema extends SchemaNode {
4
4
  readonly location: SchemaLocation;
5
5
  readonly name: string;
6
6
  readonly signature: string;
7
- readonly value?: string;
7
+ readonly value?: string | undefined;
8
8
  readonly doc?: DocSchema;
9
- constructor(location: SchemaLocation, name: string, signature: string, value?: string, doc?: DocSchema);
9
+ constructor(location: SchemaLocation, name: string, signature: string, value?: string | undefined, doc?: DocSchema);
10
10
  toString(): string;
11
11
  toFullSignature(options?: {
12
12
  showDocs?: boolean;
@@ -14,23 +14,23 @@ export declare class EnumMemberSchema extends SchemaNode {
14
14
  toObject(): {
15
15
  name: string;
16
16
  signature: string;
17
- value: string;
17
+ value: string | undefined;
18
18
  doc: {
19
19
  __schema: string;
20
- name: string;
20
+ name: string | undefined;
21
21
  location: SchemaLocation;
22
- signature: string;
22
+ signature: string | undefined;
23
23
  raw: string;
24
- comment: string;
24
+ comment: string | undefined;
25
25
  tags: {
26
26
  __schema: string;
27
27
  location: SchemaLocation;
28
- name: string;
29
- signature: string;
28
+ name: string | undefined;
29
+ signature: string | undefined;
30
30
  tagName: string;
31
- comment: string;
32
- }[];
33
- };
31
+ comment: string | undefined;
32
+ }[] | undefined;
33
+ } | undefined;
34
34
  };
35
35
  static fromObject(obj: Record<string, any>): EnumMemberSchema;
36
36
  }