Error with type aliases [TypeScript]

I have a project that compiles without errors with the official TypeScript compiler and runs without errors, too. One of the (external) modules exports type aliases like this:

export type EventCallback = (data?: any, env?: any) => void;
export type Subscription = Array<any>;

These aliases are used from other modules (files) like this:

import BlahModule = require ('./BlahModule');


export class Yo {
    private _blah: BlahModule.Subscription;   // <------

}

WebStorm complains on the marked line. Apparently, it can't resolve exported type aliases. The official TypeScript compiler can. Is this a known issue, or am I doing something wrong?
3 comments
Comment actions Permalink

It's a bug, logged as https://youtrack.jetbrains.com/issue/WEB-16894. Please vote for it to be notified on updates

0
Comment actions Permalink

Thanks a lot! However, I can't vote for it, because apparently, 'Voting for a resolved issue is not allowed.'

0
Comment actions Permalink

As it is resolved, there is no need to vote:)


0

Please sign in to leave a comment.