Skip to content

Commit 0c9b42f

Browse files
authored
Merge pull request #241 from SaschaNaz/linted
Linted
2 parents 34e026a + a4f1ed5 commit 0c9b42f

File tree

6 files changed

+2672
-2672
lines changed

6 files changed

+2672
-2672
lines changed

TS.fsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -847,9 +847,9 @@ module Emit =
847847
// Emit plurals. For example, "Events", "MutationEvents"
848848
let hasPlurals = ["Event"; "MutationEvent"; "MouseEvent"; "SVGZoomEvent"; "UIEvent"]
849849
for x in distinctETypeList do
850-
Pt.Printl "createEvent(eventInterface:\"%s\"): %s;" x x
850+
Pt.Printl "createEvent(eventInterface: \"%s\"): %s;" x x
851851
if List.contains x hasPlurals then
852-
Pt.Printl "createEvent(eventInterface:\"%ss\"): %s;" x x
852+
Pt.Printl "createEvent(eventInterface: \"%ss\"): %s;" x x
853853
Pt.Printl "createEvent(eventInterface: string): Event;"
854854

855855
/// Generate the parameters string for function signatures
@@ -1012,7 +1012,7 @@ module Emit =
10121012
if m.Name.IsSome then
10131013
// If there are added overloads from the json files, print them first
10141014
match getAddedItemByName m.Name.Value ItemKind.SignatureOverload i.Name with
1015-
| Some ol -> ol.Signatures |> Array.iter (printLine "%s")
1015+
| Some ol -> ol.Signatures |> Array.iter (printLine "%s;")
10161016
| _ -> ()
10171017

10181018
let overloads = GetOverloads (Function.Method m) false
@@ -1119,7 +1119,7 @@ module Emit =
11191119
EmitMembers flavor prefix EmitScope.StaticOnly i
11201120

11211121
Pt.DecreaseIndent()
1122-
Pt.Printl "}"
1122+
Pt.Printl "};"
11231123
Pt.Printl ""
11241124

11251125
/// Emit all the named constructors at root level
@@ -1132,7 +1132,7 @@ module Emit =
11321132
let ncParams =
11331133
[for p in nc.Params do
11341134
yield {Type = p.Type; Name = p.Name; Optional = p.Optional.IsSome; Variadic = p.Variadic.IsSome; Nullable = p.Nullable.IsSome}]
1135-
Pt.Printl "declare var %s: {new(%s): %s; };" nc.Name (ParamsToString ncParams) i.Name)
1135+
Pt.Printl "declare var %s: { new(%s): %s; };" nc.Name (ParamsToString ncParams) i.Name)
11361136

11371137
let EmitInterfaceDeclaration (i:Browser.Interface) =
11381138
let processIName iName =
@@ -1336,7 +1336,7 @@ module Emit =
13361336
EmitMembers flavor prefix EmitScope.StaticOnly i
13371337
emitAddedConstructor ()
13381338
Pt.DecreaseIndent()
1339-
Pt.Printl "}"
1339+
Pt.Printl "};"
13401340
Pt.Printl ""
13411341

13421342
let emitPureStaticInterface () =
@@ -1440,7 +1440,7 @@ module Emit =
14401440
| Some comment -> Pt.PrintWithAddedIndent "%s" comment
14411441
| _ -> ()
14421442
ai.ConstructorSignatures |> Array.iter (Pt.PrintWithAddedIndent "%s;")
1443-
Pt.Printl "}"
1443+
Pt.Printl "};"
14441444
Pt.Printl ""
14451445

14461446
let EmitTypeDefs flavor =

0 commit comments

Comments
 (0)