my typescript version is 2.3.4,it's not support String Enums.
but i can't upgrade my typescript version,because it will cause more typescript complie wrong with ionic
when i was using it in my ionic project, typescript can't complie with it,i try almost every method to override index.d.ts in your package,but there no simple way
i think it may reduce the scope your project could use in
[13:03:02] typescript: ...rkspace/APP/banma_education/node_modules/jsqr/dist/decoder/decodeData/index.d.ts, line: 6
Enum type 'Mode' has members with initializers that are not literals.
L5: export interface ByteChunk {
L6: type: Mode.Byte | Mode.Kanji;
L7: bytes: number[];
[13:03:02] typescript: ...rkspace/APP/banma_education/node_modules/jsqr/dist/decoder/decodeData/index.d.ts, line: 6
Enum type 'Mode' has members with initializers that are not literals.
L5: export interface ByteChunk {
L6: type: Mode.Byte | Mode.Kanji;
L7: bytes: number[];
[13:03:02] typescript: ...rkspace/APP/banma_education/node_modules/jsqr/dist/decoder/decodeData/index.d.ts, line: 16
In ambient enum declarations member initializer must be constant expression.
L15: export declare enum Mode {
L16: Numeric = "numeric",
L17: Alphanumeric = "alphanumeric",
[13:03:02] typescript: ...rkspace/APP/banma_education/node_modules/jsqr/dist/decoder/decodeData/index.d.ts, line: 17
In ambient enum declarations member initializer must be constant expression.
L16: Numeric = "numeric",
L17: Alphanumeric = "alphanumeric",
L18: Byte = "byte",
[13:03:02] typescript: ...rkspace/APP/banma_education/node_modules/jsqr/dist/decoder/decodeData/index.d.ts, line: 18
In ambient enum declarations member initializer must be constant expression.
L17: Alphanumeric = "alphanumeric",
L18: Byte = "byte",
L19: Kanji = "kanji",
[13:03:02] typescript: ...rkspace/APP/banma_education/node_modules/jsqr/dist/decoder/decodeData/index.d.ts, line: 19
In ambient enum declarations member initializer must be constant expression.
L18: Byte = "byte",
L19: Kanji = "kanji",