We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fa5c22 commit 38a2104Copy full SHA for 38a2104
lib/math.ts
@@ -1,13 +1,11 @@
1
-enum Priority {
2
- High = 2,
3
- Low = 1
4
-}
+const HIGH_PRIORITY = 2
+const LOW_PRIORITY = 1
5
6
const OPERATORS = {
7
- '-': Priority.Low,
8
- '*': Priority.High,
9
- '/': Priority.High,
10
- '+': Priority.Low
+ '-': LOW_PRIORITY,
+ '*': HIGH_PRIORITY,
+ '/': HIGH_PRIORITY,
+ '+': LOW_PRIORITY
11
}
12
13
type Operator = keyof typeof OPERATORS
tsconfig.json
@@ -2,6 +2,7 @@
"compilerOptions": {
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
+ "erasableSyntaxOnly": true,
"moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true,
0 commit comments