title: How to reuse Swift typealias in Objective-C code
body: <p>I'm creating a custom react-native module and I have this custom type in a swift file</p>
  
  <p><strong>VideoTrimmer.swift</strong></p>
  
  <p><code>typealias TrimCompletion = (Error?) -&gt; ()</code></p>
  
  <p>how do I import or reuse it in a file with objective code? Or what's the syntax to redeclare it? I'm not so familiar with Objective-C syntax. </p>
  
  <p><strong>VideoTrimmer.m</strong></p>
  
  <pre><code>#import "React/RCTBridgeModule.h"
  @interface RCT_EXTERN_MODULE(VideoTrimmer, NSObject)
    RCT_EXTERN_METHOD(trimVideo:(NSURL *)sourceURL destinationURL:(NSURL 
    *)destinationURL startTime:(int *)startTime endTime:(int *)endTime 
    completion:(TrimCompletion *)completion)
  @end
  </code></pre>