@teambit/semantics.entities.semantic-schema 0.0.54 → 0.0.57
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.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
;
|
|
2
|
+
import * as overview_0 from '/Users/davidfirst/Library/Caches/Bit/capsules/633786a8db5eb76897544549d9cae6b12f050100/teambit.semantics_entities_semantic-schema@0.0.57/dist/semantic-schema.docs.md';
|
|
3
|
+
|
|
4
|
+
export const compositions = [];
|
|
5
|
+
export const overview = [overview_0];
|
|
6
|
+
|
|
7
|
+
export const compositions_metadata = {"compositions":[]};
|
|
@@ -7,11 +7,13 @@ export declare class InferenceTypeSchema extends SchemaNode {
|
|
|
7
7
|
readonly type: string;
|
|
8
8
|
readonly name?: string;
|
|
9
9
|
readonly defaultValue?: string;
|
|
10
|
-
|
|
10
|
+
readonly isSpread?: boolean;
|
|
11
|
+
constructor(location: SchemaLocation, type: string, name?: string, defaultValue?: string, isSpread?: boolean);
|
|
11
12
|
toString(): string;
|
|
12
13
|
toObject(): {
|
|
13
14
|
type: string;
|
|
14
15
|
defaultValue: string;
|
|
16
|
+
isSpread: boolean;
|
|
15
17
|
};
|
|
16
18
|
static fromObject(obj: Record<string, any>): InferenceTypeSchema;
|
|
17
19
|
}
|
|
@@ -6,12 +6,13 @@ const schema_node_1 = require("../schema-node");
|
|
|
6
6
|
* where there is no explicit type, the type is taken from the "quickinfo" of tsserver
|
|
7
7
|
*/
|
|
8
8
|
class InferenceTypeSchema extends schema_node_1.SchemaNode {
|
|
9
|
-
constructor(location, type, name, defaultValue) {
|
|
9
|
+
constructor(location, type, name, defaultValue, isSpread) {
|
|
10
10
|
super();
|
|
11
11
|
this.location = location;
|
|
12
12
|
this.type = type;
|
|
13
13
|
this.name = name;
|
|
14
14
|
this.defaultValue = defaultValue;
|
|
15
|
+
this.isSpread = isSpread;
|
|
15
16
|
}
|
|
16
17
|
toString() {
|
|
17
18
|
if (this.name && this.name !== this.type) {
|
|
@@ -20,14 +21,15 @@ class InferenceTypeSchema extends schema_node_1.SchemaNode {
|
|
|
20
21
|
return this.type;
|
|
21
22
|
}
|
|
22
23
|
toObject() {
|
|
23
|
-
return Object.assign(Object.assign({}, super.toObject()), { type: this.type, defaultValue: this.defaultValue });
|
|
24
|
+
return Object.assign(Object.assign({}, super.toObject()), { type: this.type, defaultValue: this.defaultValue, isSpread: this.isSpread });
|
|
24
25
|
}
|
|
25
26
|
static fromObject(obj) {
|
|
26
27
|
const location = obj.location;
|
|
27
28
|
const type = obj.type;
|
|
28
29
|
const name = obj.name;
|
|
29
30
|
const defaultValue = obj.defaultValue;
|
|
30
|
-
|
|
31
|
+
const isSpread = obj.isSpread;
|
|
32
|
+
return new InferenceTypeSchema(location, type, name, defaultValue, isSpread);
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
exports.InferenceTypeSchema = InferenceTypeSchema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inference-type.js","sourceRoot":"","sources":["../../schemas/inference-type.ts"],"names":[],"mappings":";;;AAAA,gDAA4D;AAE5D;;GAEG;AACH,MAAa,mBAAoB,SAAQ,wBAAU;IACjD,YACW,QAAwB,EACxB,IAAY,EACZ,IAAa,EACb,YAAqB;
|
|
1
|
+
{"version":3,"file":"inference-type.js","sourceRoot":"","sources":["../../schemas/inference-type.ts"],"names":[],"mappings":";;;AAAA,gDAA4D;AAE5D;;GAEG;AACH,MAAa,mBAAoB,SAAQ,wBAAU;IACjD,YACW,QAAwB,EACxB,IAAY,EACZ,IAAa,EACb,YAAqB,EACrB,QAAkB;QAE3B,KAAK,EAAE,CAAC;QANC,aAAQ,GAAR,QAAQ,CAAgB;QACxB,SAAI,GAAJ,IAAI,CAAQ;QACZ,SAAI,GAAJ,IAAI,CAAS;QACb,iBAAY,GAAZ,YAAY,CAAS;QACrB,aAAQ,GAAR,QAAQ,CAAU;IAG7B,CAAC;IAED,QAAQ;QACN,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,EAAE;YACxC,OAAO,GAAG,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,EAAE,CAAC;SACrC;QACD,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,QAAQ;QACN,uCACK,KAAK,CAAC,QAAQ,EAAE,KACnB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,YAAY,EAAE,IAAI,CAAC,YAAY,EAC/B,QAAQ,EAAE,IAAI,CAAC,QAAQ,IACvB;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,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACtB,MAAM,YAAY,GAAG,GAAG,CAAC,YAAY,CAAC;QACtC,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC9B,OAAO,IAAI,mBAAmB,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;IAC/E,CAAC;CACF;AAnCD,kDAmCC"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/semantics.entities.semantic-schema",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.57",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/semantics/entities/semantic-schema",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.semantics",
|
|
8
8
|
"name": "entities/semantic-schema",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.57"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
@@ -8,7 +8,8 @@ export class InferenceTypeSchema extends SchemaNode {
|
|
|
8
8
|
readonly location: SchemaLocation,
|
|
9
9
|
readonly type: string,
|
|
10
10
|
readonly name?: string,
|
|
11
|
-
readonly defaultValue?: string
|
|
11
|
+
readonly defaultValue?: string,
|
|
12
|
+
readonly isSpread?: boolean
|
|
12
13
|
) {
|
|
13
14
|
super();
|
|
14
15
|
}
|
|
@@ -25,6 +26,7 @@ export class InferenceTypeSchema extends SchemaNode {
|
|
|
25
26
|
...super.toObject(),
|
|
26
27
|
type: this.type,
|
|
27
28
|
defaultValue: this.defaultValue,
|
|
29
|
+
isSpread: this.isSpread,
|
|
28
30
|
};
|
|
29
31
|
}
|
|
30
32
|
|
|
@@ -33,6 +35,7 @@ export class InferenceTypeSchema extends SchemaNode {
|
|
|
33
35
|
const type = obj.type;
|
|
34
36
|
const name = obj.name;
|
|
35
37
|
const defaultValue = obj.defaultValue;
|
|
36
|
-
|
|
38
|
+
const isSpread = obj.isSpread;
|
|
39
|
+
return new InferenceTypeSchema(location, type, name, defaultValue, isSpread);
|
|
37
40
|
}
|
|
38
41
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
;
|
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.semantics_entities_semantic-schema@0.0.54/dist/semantic-schema.docs.md';
|
|
3
|
-
|
|
4
|
-
export const compositions = [];
|
|
5
|
-
export const overview = [overview_0];
|
|
6
|
-
|
|
7
|
-
export const compositions_metadata = {"compositions":[]};
|