@teambit/semantics.entities.semantic-schema
Advanced tools
Comparing version 0.0.77 to 0.0.78
@@ -22,7 +22,7 @@ "use strict"; | ||
const bold = (options === null || options === void 0 ? void 0 : options.color) ? chalk_1.default.bold : (str) => str; | ||
return `${bold(this.name)}: ${this.type.toString(options)}`; | ||
return `type ${bold(this.name)}: ${this.type.toString(options)}`; | ||
} | ||
toFullSignature(options) { | ||
const typeSignature = this.type.toFullSignature(options); | ||
let signature = `${this.name}: ${typeSignature}`; | ||
let signature = `type ${this.name}: ${typeSignature}`; | ||
if ((options === null || options === void 0 ? void 0 : options.showDocs) && this.doc) { | ||
@@ -29,0 +29,0 @@ const docString = this.doc.toFullSignature(); |
{ | ||
"name": "@teambit/semantics.entities.semantic-schema", | ||
"version": "0.0.77", | ||
"version": "0.0.78", | ||
"homepage": "https://bit.cloud/teambit/semantics/entities/semantic-schema", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"name": "entities/semantic-schema", | ||
"version": "0.0.77" | ||
"version": "0.0.78" | ||
}, | ||
@@ -12,0 +12,0 @@ "dependencies": { |
@@ -24,3 +24,3 @@ import chalk from 'chalk'; | ||
const bold = options?.color ? chalk.bold : (str: string) => str; | ||
return `${bold(this.name)}: ${this.type.toString(options)}`; | ||
return `type ${bold(this.name)}: ${this.type.toString(options)}`; | ||
} | ||
@@ -31,3 +31,3 @@ | ||
let signature = `${this.name}: ${typeSignature}`; | ||
let signature = `type ${this.name}: ${typeSignature}`; | ||
@@ -34,0 +34,0 @@ if (options?.showDocs && this.doc) { |
Sorry, the diff of this file is not supported yet
337004