Hello,
I use several homemade type definitions containing enums. For exemple “assign” that I reference this way in my “main.ts”
/// <reference path=“…/definition/assign.d.ts” />
and containing
declare module assign {
export const enum TransferAssignType {
PICK_UP,
EXCHANGE_AFTER_PICK,
DELIVERY,
STORE,
UNSTORE,
EXCHANGE_BEFORE_DELIVERY
}
It works great using “ionic serve” but once it livereloads I get this error
Dashboard.ngfactory.js:7 ERROR ReferenceError: assign is not defined
for exemple “assign” is used for a switch/case operation that’s look like that at first compilation
case 1 /* EXCHANGE_AFTER_PICK */:
but on live reload it stays like that
case assign.TransferAssignType.EXCHANGE_AFTER_PICK:
Is this a livereload bug or do I declare my enums the wrong way ?