The code below is dragging me with gulp of this error:
[tsc]> C: /Workarea/MyFirstAngular/src/enum/msg.ts (35,33): error TS2349: Unable to invoke an expression whose type does not have a call signature. TypeScript failed to compile: Error: tsc command completed with code: 2
module MessageUtil { enum Morning { "Good Morning", "Great to see you!", "Good day.", "Lovely day today, isn't it?", "What up?", "Nice to meet you", } } export class MessageData { private getRandomElementOfEnum(e : any):string{ var length:number = Object.keys(e).length();
Does anyone know what my exact mistake is?
Same Thing worked once, but after several changes, it no longer compiles.
My setup: -IDEA 14 - Node.js - Gulp - gulp -tsc - gulp -connect (for Livereload)
source share