File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -23,3 +23,11 @@ in js should call setState
23
23
24
24
subCost section := @@prices [ section]
25
25
^ doesn't add a return
26
+
27
+
28
+
29
+ add support for ts interfaces:
30
+
31
+ export interface HelloWorldProps {
32
+ name: string;
33
+ }
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ instance ConvertToJs ArgumentName where
90
90
instance ConvertToJs Argument where
91
91
toJs (Argument (Just (ArgumentType False typ _)) name (Just default_)) = print3 " ?% % = %" typ (toJs name) default_
92
92
toJs (Argument (Just (ArgumentType True typ _)) name (Just default_)) = print3 " ?% % = %" typ (toJs name) default_
93
- toJs (Argument (Just (ArgumentType False typ _)) name Nothing ) = typ ++ " " ++ (toJs name)
93
+ toJs (Argument (Just (ArgumentType False typ _)) name Nothing ) = print2 " %: % " (toJs name) typ
94
94
toJs (Argument (Just (ArgumentType True typ _)) name Nothing ) = print2 " ?% % = null" typ (toJs name)
95
95
toJs (Argument Nothing name (Just default_)) = print2 " % = %" (toJs name) default_
96
96
toJs (Argument Nothing name Nothing ) = toJs name
You can’t perform that action at this time.
0 commit comments