Skip to content

Commit

Permalink
Preserve parameter types for optional parameters /fields with undefin…
Browse files Browse the repository at this point in the history
…ed in type and for required params with default value (microsoft#57484)
  • Loading branch information
dragomirtitian committed Mar 11, 2024
1 parent fb24094 commit d9f0f49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/baselines/reference/verbatim-declarations-parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ export function foo1(
//// [verbatim-declarations-parameters.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Foo = void 0;
exports.foo1 = foo1;
exports.foo1 = exports.Foo = void 0;
var Foo = /** @class */ (function () {
function Foo(
// Type node is accurate, preserve
Expand All @@ -51,6 +50,7 @@ resolveType, requiredParam) {
if (reuseTypeNode2 === void 0) { reuseTypeNode2 = {}; }
if (resolveType === void 0) { resolveType = {}; }
}
exports.foo1 = foo1;


//// [verbatim-declarations-parameters.d.ts]
Expand Down

0 comments on commit d9f0f49

Please sign in to comment.