mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +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": {
|
||||
"version": "4.2.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.3.tgz",
|
||||
"integrity": "sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==",
|
||||
"version": "4.2.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
|
||||
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
|
||||
"dev": true
|
||||
},
|
||||
"which": {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
"pretty-quick": "^3.1.0",
|
||||
"requirejs": "^2.3.6",
|
||||
"terser": "^5.6.0",
|
||||
"typescript": "^4.2.3"
|
||||
"typescript": "^4.2.4"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ var ts;
|
|||
// The following is baselined as a literal template type without intervention
|
||||
/** The version of the TypeScript compiler release */
|
||||
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
||||
ts.version = "4.2.3";
|
||||
ts.version = "4.2.4";
|
||||
/* @internal */
|
||||
var Comparison;
|
||||
(function (Comparison) {
|
||||
|
|
@ -46611,7 +46611,9 @@ var ts;
|
|||
var result = new Type(checker, flags);
|
||||
typeCount++;
|
||||
result.id = typeCount;
|
||||
if (ts.tracing) {
|
||||
typeCatalog.push(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function createOriginType(flags) {
|
||||
|
|
@ -148422,7 +148424,7 @@ var ts;
|
|||
};
|
||||
SignatureObject.prototype.getJsDocTags = function () {
|
||||
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;
|
||||
};
|
||||
|
|
@ -148436,15 +148438,13 @@ var ts;
|
|||
function hasJSDocInheritDocTag(node) {
|
||||
return ts.getJSDocTags(node).some(function (tag) { return tag.tagName.text === "inheritDoc"; });
|
||||
}
|
||||
function getJsDocTags(declarations, checker) {
|
||||
var tags = ts.JsDoc.getJsDocTagsFromDeclarations(declarations);
|
||||
if (tags.length === 0 || declarations.some(hasJSDocInheritDocTag)) {
|
||||
ts.forEachUnique(declarations, function (declaration) {
|
||||
var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { return symbol.getJsDocTags(); });
|
||||
function getJsDocTagsOfSignature(declaration, checker) {
|
||||
var tags = ts.JsDoc.getJsDocTagsFromDeclarations([declaration]);
|
||||
if (tags.length === 0 || hasJSDocInheritDocTag(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; });
|
||||
if (inheritedTags) {
|
||||
tags = __spreadArray(__spreadArray([], inheritedTags), tags);
|
||||
}
|
||||
});
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -293,7 +293,7 @@ var ts;
|
|||
// The following is baselined as a literal template type without intervention
|
||||
/** The version of the TypeScript compiler release */
|
||||
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
||||
ts.version = "4.2.3";
|
||||
ts.version = "4.2.4";
|
||||
/* @internal */
|
||||
var Comparison;
|
||||
(function (Comparison) {
|
||||
|
|
@ -46611,7 +46611,9 @@ var ts;
|
|||
var result = new Type(checker, flags);
|
||||
typeCount++;
|
||||
result.id = typeCount;
|
||||
if (ts.tracing) {
|
||||
typeCatalog.push(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
function createOriginType(flags) {
|
||||
|
|
@ -148422,7 +148424,7 @@ var ts;
|
|||
};
|
||||
SignatureObject.prototype.getJsDocTags = function () {
|
||||
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;
|
||||
};
|
||||
|
|
@ -148436,15 +148438,13 @@ var ts;
|
|||
function hasJSDocInheritDocTag(node) {
|
||||
return ts.getJSDocTags(node).some(function (tag) { return tag.tagName.text === "inheritDoc"; });
|
||||
}
|
||||
function getJsDocTags(declarations, checker) {
|
||||
var tags = ts.JsDoc.getJsDocTagsFromDeclarations(declarations);
|
||||
if (tags.length === 0 || declarations.some(hasJSDocInheritDocTag)) {
|
||||
ts.forEachUnique(declarations, function (declaration) {
|
||||
var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { return symbol.getJsDocTags(); });
|
||||
function getJsDocTagsOfSignature(declaration, checker) {
|
||||
var tags = ts.JsDoc.getJsDocTagsFromDeclarations([declaration]);
|
||||
if (tags.length === 0 || hasJSDocInheritDocTag(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; });
|
||||
if (inheritedTags) {
|
||||
tags = __spreadArray(__spreadArray([], inheritedTags), tags);
|
||||
}
|
||||
});
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@
|
|||
// **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;
|
||||
noSyntaxValidation?: boolean;
|
||||
noSuggestionDiagnostics?: boolean;
|
||||
/**
|
||||
* Limit diagnostic computation to only visible files.
|
||||
* Defaults to false.
|
||||
*/
|
||||
onlyVisible?: boolean;
|
||||
diagnosticCodesToIgnore?: number[];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue