mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
Update typescript
This commit is contained in:
parent
22e7676a8c
commit
9084b55571
6 changed files with 33 additions and 29 deletions
6
package-lock.json
generated
6
package-lock.json
generated
|
|
@ -461,9 +461,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "4.2.3",
|
"version": "4.2.4",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
|
||||||
"integrity": "sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==",
|
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"which": {
|
"which": {
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
"pretty-quick": "^3.1.0",
|
"pretty-quick": "^3.1.0",
|
||||||
"requirejs": "^2.3.6",
|
"requirejs": "^2.3.6",
|
||||||
"terser": "^5.6.0",
|
"terser": "^5.6.0",
|
||||||
"typescript": "^4.2.3"
|
"typescript": "^4.2.4"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
|
|
|
||||||
|
|
@ -293,7 +293,7 @@ var ts;
|
||||||
// The following is baselined as a literal template type without intervention
|
// The following is baselined as a literal template type without intervention
|
||||||
/** The version of the TypeScript compiler release */
|
/** The version of the TypeScript compiler release */
|
||||||
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
||||||
ts.version = "4.2.3";
|
ts.version = "4.2.4";
|
||||||
/* @internal */
|
/* @internal */
|
||||||
var Comparison;
|
var Comparison;
|
||||||
(function (Comparison) {
|
(function (Comparison) {
|
||||||
|
|
@ -46611,7 +46611,9 @@ var ts;
|
||||||
var result = new Type(checker, flags);
|
var result = new Type(checker, flags);
|
||||||
typeCount++;
|
typeCount++;
|
||||||
result.id = typeCount;
|
result.id = typeCount;
|
||||||
typeCatalog.push(result);
|
if (ts.tracing) {
|
||||||
|
typeCatalog.push(result);
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
function createOriginType(flags) {
|
function createOriginType(flags) {
|
||||||
|
|
@ -148422,7 +148424,7 @@ var ts;
|
||||||
};
|
};
|
||||||
SignatureObject.prototype.getJsDocTags = function () {
|
SignatureObject.prototype.getJsDocTags = function () {
|
||||||
if (this.jsDocTags === undefined) {
|
if (this.jsDocTags === undefined) {
|
||||||
this.jsDocTags = this.declaration ? getJsDocTags([this.declaration], this.checker) : [];
|
this.jsDocTags = this.declaration ? getJsDocTagsOfSignature(this.declaration, this.checker) : [];
|
||||||
}
|
}
|
||||||
return this.jsDocTags;
|
return this.jsDocTags;
|
||||||
};
|
};
|
||||||
|
|
@ -148436,15 +148438,13 @@ var ts;
|
||||||
function hasJSDocInheritDocTag(node) {
|
function hasJSDocInheritDocTag(node) {
|
||||||
return ts.getJSDocTags(node).some(function (tag) { return tag.tagName.text === "inheritDoc"; });
|
return ts.getJSDocTags(node).some(function (tag) { return tag.tagName.text === "inheritDoc"; });
|
||||||
}
|
}
|
||||||
function getJsDocTags(declarations, checker) {
|
function getJsDocTagsOfSignature(declaration, checker) {
|
||||||
var tags = ts.JsDoc.getJsDocTagsFromDeclarations(declarations);
|
var tags = ts.JsDoc.getJsDocTagsFromDeclarations([declaration]);
|
||||||
if (tags.length === 0 || declarations.some(hasJSDocInheritDocTag)) {
|
if (tags.length === 0 || hasJSDocInheritDocTag(declaration)) {
|
||||||
ts.forEachUnique(declarations, function (declaration) {
|
var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { var _a; return ((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.length) === 1 ? symbol.getJsDocTags() : undefined; });
|
||||||
var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { return symbol.getJsDocTags(); });
|
if (inheritedTags) {
|
||||||
if (inheritedTags) {
|
tags = __spreadArray(__spreadArray([], inheritedTags), tags);
|
||||||
tags = __spreadArray(__spreadArray([], inheritedTags), tags);
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
return tags;
|
return tags;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -293,7 +293,7 @@ var ts;
|
||||||
// The following is baselined as a literal template type without intervention
|
// The following is baselined as a literal template type without intervention
|
||||||
/** The version of the TypeScript compiler release */
|
/** The version of the TypeScript compiler release */
|
||||||
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
||||||
ts.version = "4.2.3";
|
ts.version = "4.2.4";
|
||||||
/* @internal */
|
/* @internal */
|
||||||
var Comparison;
|
var Comparison;
|
||||||
(function (Comparison) {
|
(function (Comparison) {
|
||||||
|
|
@ -46611,7 +46611,9 @@ var ts;
|
||||||
var result = new Type(checker, flags);
|
var result = new Type(checker, flags);
|
||||||
typeCount++;
|
typeCount++;
|
||||||
result.id = typeCount;
|
result.id = typeCount;
|
||||||
typeCatalog.push(result);
|
if (ts.tracing) {
|
||||||
|
typeCatalog.push(result);
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
function createOriginType(flags) {
|
function createOriginType(flags) {
|
||||||
|
|
@ -148422,7 +148424,7 @@ var ts;
|
||||||
};
|
};
|
||||||
SignatureObject.prototype.getJsDocTags = function () {
|
SignatureObject.prototype.getJsDocTags = function () {
|
||||||
if (this.jsDocTags === undefined) {
|
if (this.jsDocTags === undefined) {
|
||||||
this.jsDocTags = this.declaration ? getJsDocTags([this.declaration], this.checker) : [];
|
this.jsDocTags = this.declaration ? getJsDocTagsOfSignature(this.declaration, this.checker) : [];
|
||||||
}
|
}
|
||||||
return this.jsDocTags;
|
return this.jsDocTags;
|
||||||
};
|
};
|
||||||
|
|
@ -148436,15 +148438,13 @@ var ts;
|
||||||
function hasJSDocInheritDocTag(node) {
|
function hasJSDocInheritDocTag(node) {
|
||||||
return ts.getJSDocTags(node).some(function (tag) { return tag.tagName.text === "inheritDoc"; });
|
return ts.getJSDocTags(node).some(function (tag) { return tag.tagName.text === "inheritDoc"; });
|
||||||
}
|
}
|
||||||
function getJsDocTags(declarations, checker) {
|
function getJsDocTagsOfSignature(declaration, checker) {
|
||||||
var tags = ts.JsDoc.getJsDocTagsFromDeclarations(declarations);
|
var tags = ts.JsDoc.getJsDocTagsFromDeclarations([declaration]);
|
||||||
if (tags.length === 0 || declarations.some(hasJSDocInheritDocTag)) {
|
if (tags.length === 0 || hasJSDocInheritDocTag(declaration)) {
|
||||||
ts.forEachUnique(declarations, function (declaration) {
|
var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { var _a; return ((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.length) === 1 ? symbol.getJsDocTags() : undefined; });
|
||||||
var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { return symbol.getJsDocTags(); });
|
if (inheritedTags) {
|
||||||
if (inheritedTags) {
|
tags = __spreadArray(__spreadArray([], inheritedTags), tags);
|
||||||
tags = __spreadArray(__spreadArray([], inheritedTags), tags);
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
return tags;
|
return tags;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
// **NOTE**: Do not edit directly! This file is generated using `npm run import-typescript`
|
// **NOTE**: Do not edit directly! This file is generated using `npm run import-typescript`
|
||||||
//
|
//
|
||||||
|
|
||||||
export const typescriptVersion = "4.2.3";
|
export const typescriptVersion = "4.2.4";
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,10 @@ export interface DiagnosticsOptions {
|
||||||
noSemanticValidation?: boolean;
|
noSemanticValidation?: boolean;
|
||||||
noSyntaxValidation?: boolean;
|
noSyntaxValidation?: boolean;
|
||||||
noSuggestionDiagnostics?: boolean;
|
noSuggestionDiagnostics?: boolean;
|
||||||
|
/**
|
||||||
|
* Limit diagnostic computation to only visible files.
|
||||||
|
* Defaults to false.
|
||||||
|
*/
|
||||||
onlyVisible?: boolean;
|
onlyVisible?: boolean;
|
||||||
diagnosticCodesToIgnore?: number[];
|
diagnosticCodesToIgnore?: number[];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue