@@ -43,7 +43,7 @@ const MyViewController = UIViewController.extend(
43
43
},
44
44
{
45
45
name: ' MyViewController' ,
46
- }
46
+ },
47
47
)
48
48
```
49
49
@@ -125,13 +125,13 @@ const MyViewController = UIViewController.extend(
125
125
viewDidLoad : function () {
126
126
// ...
127
127
const aboutButton = UIButton .buttonWithType (
128
- UIButtonType .UIButtonTypeRoundedRect
128
+ UIButtonType .UIButtonTypeRoundedRect ,
129
129
)
130
130
// Pass this target and the aboutTap selector for touch up callback.
131
131
aboutButton .addTargetActionForControlEvents (
132
132
this ,
133
133
' aboutTap' ,
134
- UIControlEvents .UIControlEventTouchUpInside
134
+ UIControlEvents .UIControlEventTouchUpInside ,
135
135
)
136
136
// ...
137
137
},
@@ -149,7 +149,7 @@ const MyViewController = UIViewController.extend(
149
149
// Declare the signature of the aboutTap. We can not infer it, since it is not inherited from base class or protocol.
150
150
aboutTap: { returns: interop .types .void , params: [UIControl] },
151
151
},
152
- }
152
+ },
153
153
)
154
154
```
155
155
@@ -181,7 +181,7 @@ const MyAppDelegate = UIResponder.extend(
181
181
// We will obtain the method signature from the protocol.
182
182
applicationDidFinishLaunchingWithOptions : function (
183
183
application ,
184
- launchOptions
184
+ launchOptions ,
185
185
) {
186
186
this ._window = new UIWindow (UIScreen .mainScreen .bounds )
187
187
this ._window .rootViewController = MyViewController .alloc ().init ()
@@ -194,7 +194,7 @@ const MyAppDelegate = UIResponder.extend(
194
194
name: ' MyAppDelegate' ,
195
195
// Declare that the native Objective-C class will implement the UIApplicationDelegate Objective-C protocol.
196
196
protocols: [UIApplicationDelegate],
197
- }
197
+ },
198
198
)
199
199
```
200
200
@@ -204,7 +204,7 @@ Let's look how to declare a delegate in Typescript by setting one for the [Tesse
204
204
interface G8TesseractDelegate extends NSObjectProtocol {
205
205
preprocessedImageForTesseractSourceImage? (
206
206
tesseract : G8Tesseract ,
207
- sourceImage : UIImage
207
+ sourceImage : UIImage ,
208
208
): UIImage
209
209
progressImageRecognitionForTesseract? (tesseract : G8Tesseract ): void
210
210
shouldCancelImageRecognitionForTesseract? (tesseract : G8Tesseract ): boolean
@@ -226,7 +226,7 @@ class G8TesseractDelegateImpl extends NSObject implements G8TesseractDelegate {
226
226
227
227
preprocessedImageForTesseractSourceImage(
228
228
tesseract : G8Tesseract ,
229
- sourceImage : UIImage
229
+ sourceImage : UIImage ,
230
230
): UIImage {
231
231
console .info (' preprocessedImageForTesseractSourceImage' )
232
232
return sourceImage
0 commit comments