This repository was archived by the owner on Aug 28, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypescript-errors.txt
More file actions
120 lines (120 loc) · 24.6 KB
/
typescript-errors.txt
File metadata and controls
120 lines (120 loc) · 24.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
src/dev/developerConsole.ts(242,9): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
src/dev/developerConsole.ts(248,9): error TS2322: Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
src/dev/developerConsole.ts(260,39): error TS18048: 'commandName' is possibly 'undefined'.
src/dev/developerConsole.ts(304,41): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
src/dev/developerConsole.ts(367,48): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
src/dev/developerConsole.ts(372,34): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
src/dev/developerConsole.ts(377,37): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
src/dev/index.ts(82,45): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
src/dev/performanceProfiler.ts(162,7): error TS2532: Object is possibly 'undefined'.
src/dev/performanceProfiler.ts(169,7): error TS2532: Object is possibly 'undefined'.
src/main.ts(27,5): error TS6133: 'simulationInterval' is declared but its value is never read.
src/main.ts(565,31): error TS4111: Property 'DebugMode' comes from an index signature, so it must be accessed with ['DebugMode'].
src/main.ts(566,32): error TS4111: Property 'DeveloperConsole' comes from an index signature, so it must be accessed with ['DeveloperConsole'].
src/main.ts(567,41): error TS4111: Property 'PerformanceProfiler' comes from an index signature, so it must be accessed with ['PerformanceProfiler'].
src/utils/algorithms/populationPredictor.ts(139,7): error TS2322: Type 'number | undefined' is not assignable to type 'number'.
Type 'undefined' is not assignable to type 'number'.
src/utils/algorithms/populationPredictor.ts(168,62): error TS2345: Argument of type 'GrowthCurve | undefined' is not assignable to parameter of type 'GrowthCurve'.
Type 'undefined' is not assignable to type 'GrowthCurve'.
src/utils/algorithms/populationPredictor.ts(169,9): error TS2532: Object is possibly 'undefined'.
src/utils/algorithms/populationPredictor.ts(187,7): error TS2322: Type 'number | undefined' is not assignable to type 'number'.
Type 'undefined' is not assignable to type 'number'.
src/utils/algorithms/populationPredictor.ts(373,7): error TS2322: Type 'number | undefined' is not assignable to type 'number'.
Type 'undefined' is not assignable to type 'number'.
src/utils/algorithms/simulationWorker.ts(119,58): error TS18048: 'currentPop' is possibly 'undefined'.
src/utils/algorithms/simulationWorker.ts(120,75): error TS18048: 'currentPop' is possibly 'undefined'.
src/utils/algorithms/simulationWorker.ts(121,53): error TS18048: 'currentPop' is possibly 'undefined'.
src/utils/algorithms/simulationWorker.ts(124,36): error TS18048: 'currentPop' is possibly 'undefined'.
src/utils/algorithms/simulationWorker.ts(127,9): error TS2532: Object is possibly 'undefined'.
src/utils/algorithms/simulationWorker.ts(249,7): error TS2322: Type 'number | undefined' is not assignable to type 'number'.
Type 'undefined' is not assignable to type 'number'.
src/utils/algorithms/workerManager.ts(205,5): error TS2322: Type 'Worker | undefined' is not assignable to type 'Worker'.
Type 'undefined' is not assignable to type 'Worker'.
src/utils/memory/cacheOptimizedStructures.ts(193,12): error TS2532: Object is possibly 'undefined'.
src/utils/memory/cacheOptimizedStructures.ts(207,12): error TS2532: Object is possibly 'undefined'.
src/utils/memory/cacheOptimizedStructures.ts(220,35): error TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'.
Type 'undefined' is not assignable to type 'number'.
src/utils/memory/cacheOptimizedStructures.ts(221,5): error TS2322: Type 'number | undefined' is not assignable to type 'number'.
Type 'undefined' is not assignable to type 'number'.
src/utils/memory/cacheOptimizedStructures.ts(347,7): error TS2532: Object is possibly 'undefined'.
src/utils/memory/cacheOptimizedStructures.ts(352,7): error TS2532: Object is possibly 'undefined'.
src/utils/memory/cacheOptimizedStructures.ts(353,7): error TS2532: Object is possibly 'undefined'.
src/utils/memory/cacheOptimizedStructures.ts(360,63): error TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'.
Type 'undefined' is not assignable to type 'number'.
src/utils/memory/cacheOptimizedStructures.ts(361,64): error TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'.
Type 'undefined' is not assignable to type 'number'.
src/utils/memory/lazyLoader.ts(337,30): error TS2379: Argument of type '{ id: string; isLoaded: false; loader: () => Promise<any> | any; dependencies: string[] | undefined; }' is not assignable to parameter of type 'LazyLoadable<any>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
Types of property 'dependencies' are incompatible.
Type 'string[] | undefined' is not assignable to type 'string[]'.
Type 'undefined' is not assignable to type 'string[]'.
src/utils/memory/memoryMonitor.ts(414,13): error TS2488: Type '[K, V] | undefined' must have a '[Symbol.iterator]()' method that returns an iterator.
src/utils/system/errorHandler.ts(98,11): error TS2375: Type '{ error: Error; severity: ErrorSeverity; context: string | undefined; timestamp: Date; userAgent: string; stackTrace: string | undefined; }' is not assignable to type 'ErrorInfo' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
Types of property 'context' are incompatible.
Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
src/utils/system/logger.ts(120,11): error TS2375: Type '{ timestamp: Date; level: LogLevel; category: LogCategory; message: string; data: any; context: string | undefined; sessionId: string; userAgent: string; url: string; }' is not assignable to type 'LogEntry' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
Types of property 'context' are incompatible.
Type 'string | undefined' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
test/algorithms.test.ts(1,32): error TS6133: 'vi' is declared but its value is never read.
test/algorithms.test.ts(247,13): error TS6133: 'testData' is declared but its value is never read.
test/errorHandler.test.ts(102,14): error TS2532: Object is possibly 'undefined'.
test/errorHandler.test.ts(103,14): error TS2532: Object is possibly 'undefined'.
test/errorHandling.integration.test.ts(5,1): error TS6133: 'CanvasManager' is declared but its value is never read.
test/errorHandling.integration.test.ts(98,12): error TS2532: Object is possibly 'undefined'.
test/errorHandling.integration.test.ts(108,12): error TS2532: Object is possibly 'undefined'.
test/errorHandling.integration.test.ts(119,12): error TS2532: Object is possibly 'undefined'.
test/errorHandling.integration.test.ts(120,12): error TS2532: Object is possibly 'undefined'.
test/errorHandling.integration.test.ts(131,12): error TS2532: Object is possibly 'undefined'.
test/errorHandling.integration.test.ts(132,12): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(51,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(52,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(53,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(60,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(61,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(62,21): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(70,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(71,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(93,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(94,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(95,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(96,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(97,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(98,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(99,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(110,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(111,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(120,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(121,14): error TS2532: Object is possibly 'undefined'.
test/logger.test.ts(122,14): error TS2532: Object is possibly 'undefined'.
test/organismSimulation.test.ts(3,10): error TS1484: 'OrganismType' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
test/organismSimulation.test.ts(92,11): error TS6133: 'simulation' is declared but its value is never read.
test/performance/benchmark.test.ts(224,7): error TS2532: Object is possibly 'undefined'.
test/performance/benchmark.test.ts(224,36): error TS2532: Object is possibly 'undefined'.
test/performance/benchmark.test.ts(262,19): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
test/performance/benchmark.test.ts(262,37): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
test/performance/benchmark.test.ts(262,55): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
test/performance/benchmark.test.ts(262,76): error TS1294: This syntax is not allowed when 'erasableSyntaxOnly' is enabled.
test/setup.ts(129,7): error TS6196: 'MockCanvasElement' is declared but never used.
test/setup.ts(189,5): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'MockElement'.
No index signature with a parameter of type 'string' was found on type 'MockElement'.
test/setup.ts(193,12): error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'MockElement'.
No index signature with a parameter of type 'string' was found on type 'MockElement'.
test/setup.ts(218,1): error TS2322: Type '(tagName: any) => HTMLElement | MockElement' is not assignable to type '{ <K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions | undefined): HTMLElementTagNameMap[K]; <K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions | undefined): HTMLElementDeprecatedTagNameMap[K]; (tagName: string, options?: ElementCreationOp...'.
Type 'HTMLElement | MockElement' is not assignable to type 'HTMLElement'.
Type 'MockElement' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, dir, and 292 more.
test/setup.ts(218,27): error TS7006: Parameter 'tagName' implicitly has an 'any' type.
test/setup.ts(227,1): error TS2322: Type '(id: string) => HTMLElement | MockElement | null' is not assignable to type '(elementId: string) => HTMLElement | null'.
Type 'HTMLElement | MockElement | null' is not assignable to type 'HTMLElement | null'.
Type 'MockElement' is missing the following properties from type 'HTMLElement': accessKey, accessKeyLabel, autocapitalize, dir, and 292 more.
test/setup.ts(357,7): error TS6196: 'EnhancedHTMLCanvasElementMock' is declared but never used.
test/setup.ts(363,3): error TS4114: This member must have an 'override' modifier because it overrides a member in the base class 'HTMLCanvasElementMock'.
test/simulation.test.ts(6,6): error TS6196: 'MockedEventListener' is declared but never used.
test/simulation.test.ts(12,5): error TS6133: 'mockElements' is declared but its value is never read.