Skip to content

Commit 159a7c1

Browse files
committed
fix: cast grouptype to const to let TS ignore typecasting for large arrays.
1 parent d08fa5a commit 159a7c1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Generator/WebsiteBuilder.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using Generator.DTO.Warnings;
33
using Microsoft.Extensions.Configuration;
44
using Newtonsoft.Json;
5-
using System.Collections.Generic;
65
using System.Text;
76

87
namespace Generator;
@@ -64,7 +63,7 @@ internal void AddData()
6463
sb.AppendLine(" },");
6564
}
6665

67-
sb.AppendLine("]");
66+
sb.AppendLine("] as const;");
6867

6968
// WARNINGS
7069
sb.AppendLine("");
@@ -73,7 +72,7 @@ internal void AddData()
7372
{
7473
sb.AppendLine($" {JsonConvert.SerializeObject(warning)},");
7574
}
76-
sb.AppendLine("]");
75+
sb.AppendLine("] as const;");
7776

7877
// SOLUTION COMPONENTS (for insights)
7978
sb.AppendLine("");

0 commit comments

Comments
 (0)