Skip to content

Commit 3b44ee7

Browse files
committed
undo change on new() to decrease diff
1 parent 1fda2ca commit 3b44ee7

File tree

3 files changed

+576
-576
lines changed

3 files changed

+576
-576
lines changed

TS.fsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ module Emit =
11331133
let emitConstructorSingleSignature (ctor: Browser.Constructor) =
11341134
for { ParamCombinations = pCombList } in GetOverloads (Ctor ctor) false do
11351135
let paramsString = ParamsToString pCombList
1136-
Pt.Printl "new (%s): %s;" paramsString i.Name
1136+
Pt.Printl "new(%s): %s;" paramsString i.Name
11371137

11381138
let removedCtor = getRemovedItems ItemKind.Constructor Flavor.All |> Array.tryFind (matchInterface i.Name)
11391139
if Option.isNone removedCtor then
@@ -1145,7 +1145,7 @@ module Emit =
11451145
if not (Array.isEmpty i.Constructors) then
11461146
i.Constructors |> Array.iter emitConstructorSingleSignature
11471147
else
1148-
Pt.Printl "new (): %s;" i.Name
1148+
Pt.Printl "new(): %s;" i.Name
11491149

11501150
getAddedItemsByInterfaceName ItemKind.Constructor Flavor.All i.Name
11511151
|> Array.iter emitConstructorSigFromJson
@@ -1174,7 +1174,7 @@ module Emit =
11741174
let ncParams =
11751175
[for p in nc.Params do
11761176
yield {Type = p.Type; Name = p.Name; Optional = p.Optional.IsSome; Variadic = p.Variadic.IsSome; Nullable = p.Nullable.IsSome}]
1177-
Pt.Printl "declare var %s: {new (%s): %s; };" nc.Name (ParamsToString ncParams) i.Name)
1177+
Pt.Printl "declare var %s: {new(%s): %s; };" nc.Name (ParamsToString ncParams) i.Name)
11781178

11791179
let EmitInterfaceDeclaration (i:Browser.Interface) =
11801180
let getConflict iName = Map.tryFind iName extendConflictsBaseTypes;

0 commit comments

Comments
 (0)