docs/libs/typescript.js
function parseEnumMember() {
            var node = createNode(255 /* EnumMember */, scanner.getStartPos());
            node.name = parsePropertyName();
            node.initializer = allowInAnd(parseNonParameterInitializer);
            return finishNode(node);
        }
function parseEnumMember() {
            var node = createNode(255 /* EnumMember */, scanner.getStartPos());
            node.name = parsePropertyName();
            node.initializer = allowInAnd(parseNonParameterInitializer);
            return finishNode(node);
        }
function parseEnumMember ( ) { var node = createNode ( 255 /* EnumMember */ , scanner . getStartPos ( ) ) ; node . name = parsePropertyName ( ) ; node . initializer = allowInAnd ( parseNonParameterInitializer ) ; return finishNode ( node ) ; }
In an ambient declaration, the grammar only allows integer literals as initializers. In a non-ambient declaration, the grammar allows uninitialized members only in a ConstantEnumMemberSection, which starts at the beginning of an enum declaration or any time an integer literal initializer is encountered.
In an ambient declaration the grammar only allows integer literals as initializers . In a non - ambient declaration the grammar allows uninitialized members only in a ConstantEnumMemberSection which starts at the beginning of an enum declaration or any time an integer literal initializer is encountered .