title: Referring to core modules from NativeScript UI plugin
body: <p>I'm working on a UI component in VIM with TypeScript plugin that highlights the errors on the spot, so it's not something I get during the actual plugin installation into the app at this point (although I haven't tried yet).</p>
  
  <pre><code>declare module "card-view" {
    import view = require("ui/core/view");
  
    export class CardView extends view.View {
    }
  }
  </code></pre>
  
  <p>And I get this:</p>
  
  <pre><code>Cannot find module 'ui/core/view'.
  </code></pre>
  
  <p>I realize that <code>ui/core/view</code> is unavailable at this point, since it's a standalone plugin, but it will be available at runtime. Is there anything to be done to resolve the error? I must be missing some step that wasn't mentioned in the guide -- <a href="http://docs.nativescript.org/plugins/ui-plugin" rel="nofollow">http://docs.nativescript.org/plugins/ui-plugin</a>.</p>
  
  <p><em>UPDATE 1:</em></p>
  
  <p>When I got to <code>card-view-common.js</code> implementation I hit another issue. TypeScript expects <code>android</code> and <code>ios</code> properties to be implemented, but since the class extends <code>View</code> (from <code>ui/core/view</code>) they are supposed to be implemented there. In other words, I believe I still need to somehow point to the existing core module, not sure how though.</p>