From 85072b3126c9f96d8c3222dbabf147df91f5ec0f Mon Sep 17 00:00:00 2001 From: Project Nayuki Date: Sun, 26 Aug 2018 03:41:25 +0000 Subject: [PATCH] Fixed TypeScript code's QrSegment_Mode constants to make the demo work correctly. --- typescript/qrcodegen.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/typescript/qrcodegen.ts b/typescript/qrcodegen.ts index 52b2a4f..03b9943 100644 --- a/typescript/qrcodegen.ts +++ b/typescript/qrcodegen.ts @@ -870,11 +870,11 @@ namespace qrcodegen { /*-- Constants --*/ - public static get NUMERIC () { return new QrSegment_Mode(0x1, [10, 12, 14]); } - public static get ALPHANUMERIC() { return new QrSegment_Mode(0x2, [ 9, 11, 13]); } - public static get BYTE () { return new QrSegment_Mode(0x4, [ 8, 16, 16]); } - public static get KANJI () { return new QrSegment_Mode(0x8, [ 8, 10, 12]); } - public static get ECI () { return new QrSegment_Mode(0x7, [ 0, 0, 0]); } + public static readonly NUMERIC = new QrSegment_Mode(0x1, [10, 12, 14]); + public static readonly ALPHANUMERIC = new QrSegment_Mode(0x2, [ 9, 11, 13]); + public static readonly BYTE = new QrSegment_Mode(0x4, [ 8, 16, 16]); + public static readonly KANJI = new QrSegment_Mode(0x8, [ 8, 10, 12]); + public static readonly ECI = new QrSegment_Mode(0x7, [ 0, 0, 0]); /*-- Fields --*/