diff --git a/lib/tsc.js b/lib/tsc.js index 447e451186c..2f2f3343d45 100644 --- a/lib/tsc.js +++ b/lib/tsc.js @@ -67,7 +67,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook var ts; (function (ts) { ts.versionMajorMinor = "3.6"; - ts.version = ts.versionMajorMinor + ".4"; + ts.version = ts.versionMajorMinor + ".5"; })(ts || (ts = {})); (function (ts) { ts.emptyArray = []; @@ -30808,8 +30808,10 @@ var ts; } } else { - ts.Debug.assert(!!getter, "there must existed getter as we are current checking either setter or getter in this function"); - errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + ts.Debug.assert(!!getter, "there must exist a getter as we are current checking either setter or getter in this function"); + if (!isPrivateWithinAmbient(getter)) { + errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + } } type = anyType; } diff --git a/lib/tsserver.js b/lib/tsserver.js index be5166a94b4..e12a320b5b9 100644 --- a/lib/tsserver.js +++ b/lib/tsserver.js @@ -94,7 +94,7 @@ var ts; // If changing the text in this section, be sure to test `configureNightly` too. ts.versionMajorMinor = "3.6"; /** The version of the TypeScript compiler release */ - ts.version = ts.versionMajorMinor + ".4"; + ts.version = ts.versionMajorMinor + ".5"; })(ts || (ts = {})); (function (ts) { /* @internal */ @@ -37329,8 +37329,10 @@ var ts; } } else { - ts.Debug.assert(!!getter, "there must existed getter as we are current checking either setter or getter in this function"); - errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + ts.Debug.assert(!!getter, "there must exist a getter as we are current checking either setter or getter in this function"); + if (!isPrivateWithinAmbient(getter)) { + errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + } } type = anyType; } diff --git a/lib/tsserverlibrary.js b/lib/tsserverlibrary.js index 8df15d7214c..e3229622d69 100644 --- a/lib/tsserverlibrary.js +++ b/lib/tsserverlibrary.js @@ -93,7 +93,7 @@ var ts; // If changing the text in this section, be sure to test `configureNightly` too. ts.versionMajorMinor = "3.6"; /** The version of the TypeScript compiler release */ - ts.version = ts.versionMajorMinor + ".4"; + ts.version = ts.versionMajorMinor + ".5"; })(ts || (ts = {})); (function (ts) { /* @internal */ @@ -37328,8 +37328,10 @@ var ts; } } else { - ts.Debug.assert(!!getter, "there must existed getter as we are current checking either setter or getter in this function"); - errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + ts.Debug.assert(!!getter, "there must exist a getter as we are current checking either setter or getter in this function"); + if (!isPrivateWithinAmbient(getter)) { + errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + } } type = anyType; } diff --git a/lib/typescript.js b/lib/typescript.js index fd7aaa5b59f..17a4b4fc224 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -82,7 +82,7 @@ var ts; // If changing the text in this section, be sure to test `configureNightly` too. ts.versionMajorMinor = "3.6"; /** The version of the TypeScript compiler release */ - ts.version = ts.versionMajorMinor + ".4"; + ts.version = ts.versionMajorMinor + ".5"; })(ts || (ts = {})); (function (ts) { /* @internal */ @@ -37317,8 +37317,10 @@ var ts; } } else { - ts.Debug.assert(!!getter, "there must existed getter as we are current checking either setter or getter in this function"); - errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + ts.Debug.assert(!!getter, "there must exist a getter as we are current checking either setter or getter in this function"); + if (!isPrivateWithinAmbient(getter)) { + errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + } } type = anyType; } diff --git a/lib/typescriptServices.js b/lib/typescriptServices.js index d41325d6b5b..7a0ea862ff1 100644 --- a/lib/typescriptServices.js +++ b/lib/typescriptServices.js @@ -82,7 +82,7 @@ var ts; // If changing the text in this section, be sure to test `configureNightly` too. ts.versionMajorMinor = "3.6"; /** The version of the TypeScript compiler release */ - ts.version = ts.versionMajorMinor + ".4"; + ts.version = ts.versionMajorMinor + ".5"; })(ts || (ts = {})); (function (ts) { /* @internal */ @@ -37317,8 +37317,10 @@ var ts; } } else { - ts.Debug.assert(!!getter, "there must existed getter as we are current checking either setter or getter in this function"); - errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + ts.Debug.assert(!!getter, "there must exist a getter as we are current checking either setter or getter in this function"); + if (!isPrivateWithinAmbient(getter)) { + errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + } } type = anyType; } diff --git a/lib/typingsInstaller.js b/lib/typingsInstaller.js index d8bd3fffc95..65ba0c2f9d9 100644 --- a/lib/typingsInstaller.js +++ b/lib/typingsInstaller.js @@ -83,7 +83,7 @@ var ts; // If changing the text in this section, be sure to test `configureNightly` too. ts.versionMajorMinor = "3.6"; /** The version of the TypeScript compiler release */ - ts.version = ts.versionMajorMinor + ".4"; + ts.version = ts.versionMajorMinor + ".5"; })(ts || (ts = {})); (function (ts) { /* @internal */ @@ -37318,8 +37318,10 @@ var ts; } } else { - ts.Debug.assert(!!getter, "there must existed getter as we are current checking either setter or getter in this function"); - errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + ts.Debug.assert(!!getter, "there must exist a getter as we are current checking either setter or getter in this function"); + if (!isPrivateWithinAmbient(getter)) { + errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol)); + } } type = anyType; }