functionalscript 0.0.328 → 0.0.329

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,18 +3,6 @@ const operator = require('../../types/function/operator')
3
3
  const { concat } = require('../../types/list')
4
4
  const list = require('../../types/list')
5
5
 
6
- /** @typedef {{readonly kind: '{'}} LeftBraceToken */
7
-
8
- /** @typedef {{readonly kind: '}'}} RightBraceToken */
9
-
10
- /** @typedef {{readonly kind: ':'}} ColonToken */
11
-
12
- /** @typedef {{readonly kind: ','}} CommaToken */
13
-
14
- /** @typedef {{readonly kind: '['}} LeftBracketToken */
15
-
16
- /** @typedef {{readonly kind: ']'}} RightBracketToken */
17
-
18
6
  /**
19
7
  * @typedef {{
20
8
  * readonly kind: 'string'
@@ -29,27 +17,15 @@ const list = require('../../types/list')
29
17
  * }} NumberToken
30
18
  * */
31
19
 
32
- /** @typedef {{readonly kind: 'true'}} TrueToken */
33
-
34
- /** @typedef {{readonly kind: 'false'}} FalseToken */
35
-
36
- /** @typedef {{readonly kind: 'null'}} NullToken */
37
-
38
20
  /** @typedef {{readonly kind: 'error', message: ErrorMessage}} ErrorToken */
39
21
 
22
+ /** @typedef {{readonly kind: '{' | '}' | ':' | ',' | '[' | ']' | 'true' | 'false' | 'null'}} SimpleToken */
23
+
40
24
  /**
41
25
  * @typedef {|
42
- * LeftBraceToken |
43
- * RightBraceToken |
44
- * ColonToken |
45
- * CommaToken |
46
- * LeftBracketToken |
47
- * RightBracketToken |
26
+ * SimpleToken |
48
27
  * StringToken |
49
28
  * NumberToken |
50
- * TrueToken |
51
- * FalseToken |
52
- * NullToken |
53
29
  * ErrorToken
54
30
  * } JsonToken
55
31
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.0.328",
3
+ "version": "0.0.329",
4
4
  "description": "FunctionalScript is a functional subset of JavaScript",
5
5
  "main": "index.js",
6
6
  "scripts": {