@teambit/semantics.entities.semantic-schema 0.0.113 → 0.0.114

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.
@@ -14,13 +14,13 @@ export declare class PropertyLikeTagSchema extends TagSchema {
14
14
  showDocs?: boolean;
15
15
  }): string;
16
16
  toObject(): {
17
- name: string;
18
- type: Record<string, any> | undefined;
19
17
  __schema: string;
20
18
  location: SchemaLocation;
21
19
  signature: string | undefined;
22
20
  tagName: string;
23
21
  comment: string | undefined;
22
+ name: string;
23
+ type: Record<string, any> | undefined;
24
24
  };
25
25
  static fromObject(obj: Record<string, any>): PropertyLikeTagSchema;
26
26
  }
@@ -13,13 +13,13 @@ export declare class ReturnTagSchema extends TagSchema {
13
13
  showDocs?: boolean;
14
14
  }): string;
15
15
  toObject(): {
16
- type: Record<string, any> | undefined;
17
16
  __schema: string;
18
17
  location: SchemaLocation;
19
18
  name: string | undefined;
20
19
  signature: string | undefined;
21
20
  tagName: string;
22
21
  comment: string | undefined;
22
+ type: Record<string, any> | undefined;
23
23
  };
24
24
  static fromObject(obj: Record<string, any>): ReturnTagSchema;
25
25
  }
@@ -19,7 +19,7 @@ export declare class FunctionLikeSchema extends SchemaNode {
19
19
  readonly signature?: string | undefined;
20
20
  readonly displaySchemaName = "Functions";
21
21
  constructor(location: SchemaLocation, name: string, params: ParameterSchema[], returnType: SchemaNode, signature: string, modifiers?: Modifier[], doc?: DocSchema, typeParams?: string[] | undefined, decorators?: SchemaNode[] | undefined);
22
- getNodes(): (SchemaNode | ParameterSchema<SchemaNode>)[];
22
+ getNodes(): (ParameterSchema<SchemaNode> | SchemaNode)[];
23
23
  toString(options?: {
24
24
  color?: boolean;
25
25
  }): string;
@@ -4,13 +4,13 @@ export declare class ParameterSchema<T extends SchemaNode = SchemaNode> extends
4
4
  readonly location: SchemaLocation;
5
5
  readonly name: string;
6
6
  readonly isOptional: boolean;
7
- readonly defaultValue?: any | undefined;
7
+ readonly defaultValue?: any;
8
8
  readonly description?: string | undefined;
9
9
  readonly isSpread: boolean;
10
10
  readonly type: T;
11
11
  readonly objectBindingNodes?: SchemaNode[];
12
12
  getNodes(): SchemaNode[];
13
- constructor(location: SchemaLocation, name: string, type: T, isOptional: boolean, defaultValue?: any | undefined, description?: string | undefined, objectBindingNodes?: SchemaNode[], isSpread?: boolean);
13
+ constructor(location: SchemaLocation, name: string, type: T, isOptional: boolean, defaultValue?: any, description?: string | undefined, objectBindingNodes?: SchemaNode[], isSpread?: boolean);
14
14
  toString(): string;
15
15
  toFullSignature(options?: {
16
16
  showDocs?: boolean;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/semantics.entities.semantic-schema",
3
- "version": "0.0.113",
3
+ "version": "0.0.114",
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.113"
9
+ "version": "0.0.114"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "4.1.2",
@@ -18,7 +18,7 @@
18
18
  "@types/lodash": "4.14.165",
19
19
  "@types/pluralize": "0.0.29",
20
20
  "@types/mocha": "9.1.0",
21
- "@teambit/node.envs.node-babel-mocha": "2.0.4"
21
+ "@teambit/node.envs.node-babel-mocha": "2.0.5"
22
22
  },
23
23
  "peerDependencies": {},
24
24
  "license": "Apache-2.0",
@@ -28,8 +28,7 @@
28
28
  ".": {
29
29
  "types": "./dist/index.d.ts",
30
30
  "node": {
31
- "require": "./dist/index.js",
32
- "import": "./dist/esm.mjs"
31
+ "require": "./dist/index.js"
33
32
  },
34
33
  "default": "./dist/index.js"
35
34
  },