Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TypeScript 'use strict'
Message
From
14/11/2014 11:44:53
John Baird
Coatesville, Pennsylvania, United States
 
 
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01610964
Message ID:
01610996
Views:
17
>>>I'm using Typescript with angularjs and this has been bugging me for a while (I must be missing something simple).
>>>
>>>If I use:
module SomeModule{
>>>}
TsLint complains with "missing 'use strict'". But if I use:
module SomeModule{
>>>"use strict";
>>>}
it complains with 'expected an assignment or function call'. Why am I in this Catch22 situation ?
>>
>>
>>Isn't it:
>>
>>
>>"Use Strict";
>>module SomeModule{}
>>
Do you mean 'Use Strict' with proper casing (I assume not) or that the directive should be outside the module ?
>If the latter then, no, placing it as the first line inside the module should be valid - at least everything I've read says so....

Mistyped the "use script";
http://stackoverflow.com/questions/26397242/where-does-the-use-strict-go-when-using-typescript-and-amd-modules
Previous
Reply
Map
View

Click here to load this message in the networking platform