Below is the code snippet for the file that contains the enum:
module mops {
export enum Status {
OK = 0,
ROC = (1 << 0),
LLA = (1 << 1),
LOA = (1 << 2),
HIA = (1 << 3),
HHA = (1 << 4),
MNL = (1 << 5),
OFS = (1 << 6),
INV = (1 << 7),
BAD = (1 << 8),
IOF = (1 << 9),
LLL = (1 << 10),
HHH = (1 << 11),
LOR = (1 << 12),
AVG = (1 << 13),
SUS = (1 << 14),
PND = (1 << 16),
MXT = (1 << 17),
INC = BAD | INV | OFS | IOF,
IGNORE = BAD | INV | OFS | IOF | MXT,
MASK = ROC | LLA | LOA | HIA | HHA | MNL | OFS | INV | BAD | IOF | LLL | HHH | LOR | AVG | SUS | PND | MXT
}
}
The following code snippet is used to print the enum from another file:
/// <reference path="../../enum.ts" />
module mops {
import x = mops.Status;
console.log("testing", x);
for (let i in x)
console.log("Member: ", i);
}
Upon execution, the console output will be "testing undefined". Attempts were made with "export declare enum Status" (resulting in Status being undefined) and "export const enum Status" (which gave an error). I am seeking guidance on resolving this issue.
For your information, this is a Python project in Visual Studio.
I appreciate your assistance in advance.