@@ -43,7 +43,7 @@ const MyViewController = UIViewController.extend(
4343 },
4444 {
4545 name: ' MyViewController' ,
46- }
46+ },
4747)
4848```
4949
@@ -125,13 +125,13 @@ const MyViewController = UIViewController.extend(
125125 viewDidLoad : function () {
126126 // ...
127127 const aboutButton = UIButton .buttonWithType (
128- UIButtonType .UIButtonTypeRoundedRect
128+ UIButtonType .UIButtonTypeRoundedRect ,
129129 )
130130 // Pass this target and the aboutTap selector for touch up callback.
131131 aboutButton .addTargetActionForControlEvents (
132132 this ,
133133 ' aboutTap' ,
134- UIControlEvents .UIControlEventTouchUpInside
134+ UIControlEvents .UIControlEventTouchUpInside ,
135135 )
136136 // ...
137137 },
@@ -149,7 +149,7 @@ const MyViewController = UIViewController.extend(
149149 // Declare the signature of the aboutTap. We can not infer it, since it is not inherited from base class or protocol.
150150 aboutTap: { returns: interop .types .void , params: [UIControl] },
151151 },
152- }
152+ },
153153)
154154```
155155
@@ -181,7 +181,7 @@ const MyAppDelegate = UIResponder.extend(
181181 // We will obtain the method signature from the protocol.
182182 applicationDidFinishLaunchingWithOptions : function (
183183 application ,
184- launchOptions
184+ launchOptions ,
185185 ) {
186186 this ._window = new UIWindow (UIScreen .mainScreen .bounds )
187187 this ._window .rootViewController = MyViewController .alloc ().init ()
@@ -194,7 +194,7 @@ const MyAppDelegate = UIResponder.extend(
194194 name: ' MyAppDelegate' ,
195195 // Declare that the native Objective-C class will implement the UIApplicationDelegate Objective-C protocol.
196196 protocols: [UIApplicationDelegate],
197- }
197+ },
198198)
199199```
200200
@@ -204,7 +204,7 @@ Let's look how to declare a delegate in Typescript by setting one for the [Tesse
204204interface G8TesseractDelegate extends NSObjectProtocol {
205205 preprocessedImageForTesseractSourceImage? (
206206 tesseract : G8Tesseract ,
207- sourceImage : UIImage
207+ sourceImage : UIImage ,
208208 ): UIImage
209209 progressImageRecognitionForTesseract? (tesseract : G8Tesseract ): void
210210 shouldCancelImageRecognitionForTesseract? (tesseract : G8Tesseract ): boolean
@@ -226,7 +226,7 @@ class G8TesseractDelegateImpl extends NSObject implements G8TesseractDelegate {
226226
227227 preprocessedImageForTesseractSourceImage(
228228 tesseract : G8Tesseract ,
229- sourceImage : UIImage
229+ sourceImage : UIImage ,
230230 ): UIImage {
231231 console .info (' preprocessedImageForTesseractSourceImage' )
232232 return sourceImage
0 commit comments