Skip to content

Commit 971852e

Browse files
committed
If these are not using an export statement, then the builder/compiler complains that SwitchContext is not a module... undoing last change...
1 parent 7eeca4a commit 971852e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

classes/switchcontext.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
//namespace classes {
21

3-
class SwitchContext {
2+
3+
export class SwitchContext {
44
private Cases: { Match: any, Handler: () => void, IsDefault?: boolean }[] = [];
55

66
addCase(match: any, handler: () => void): void {
@@ -132,4 +132,4 @@ class SwitchContext {
132132
*/
133133
}
134134

135-
//}
135+

classes/switchmanager.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { SwitchContext } from "../classes/switchcontext"
1+
import { SwitchContext } from "./switchcontext";
22

3-
//namespace classes {
43

54
export class SwitchManager {
65
private Switches: { [Name: string]: SwitchContext } = {};
@@ -30,5 +29,5 @@ export class SwitchManager {
3029
*/
3130

3231
}
33-
//}
32+
3433

0 commit comments

Comments
 (0)