Typescript compile error

95 views
Skip to first unread message

Marco Volpe

unread,
Mar 19, 2014, 6:59:55 AM3/19/14
to izwebfil...@googlegroups.com
Hi

I've trying to compile using VS 2012 and Typescript plugin installed. But I can't compile having the same error


Errore 1 ';' expected. FileManagerController.ts 190 22 FileManagerController.ts

The error seems to be placed in this function

FileManagerController.prototype.PromptDirectory = function (directory, callback: (selectedFolder: string) => void) {

    var func = window['WFM_' + this.ClientID + 'PromptDirectory']
        || (dir, cb) => {
            var selectedFolder = window.prompt(decodeURIComponent(eval('WFM_' + this.ClientID + 'SelectDestination')), dir);
            cb(selectedFolder);
        };

    func(directory, callback);
}

How can I resolve?

Tks

Igor Zelmanovich

unread,
Mar 19, 2014, 7:50:37 AM3/19/14
to izwebfil...@googlegroups.com
Seem TypeScript compiler has been change since my last commit, and it requires changes in type script code.

There are to ways to solve it:

1. Fix type script to make compiler works
2. Ignore this error, do not compile typescript and use existing (already compiled) javascript files. Look into TS settings how to disable TS compiler.

Igor Zelmanovich


--
You received this message because you are subscribed to the Google Groups "izwebfilemanager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to izwebfilemanag...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marco Volpe

unread,
Mar 19, 2014, 10:05:21 AM3/19/14
to izwebfil...@googlegroups.com
Ok, for now I've ignored TS error

Tks
Reply all
Reply to author
Forward
0 new messages