whet 0.0.34 → 0.1.1

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.
Files changed (81) hide show
  1. package/bin/Reflect.d.ts +31 -12
  2. package/bin/Reflect.js +46 -19
  3. package/bin/commander/LiteralUnion.d.ts +2 -0
  4. package/bin/commander/OptionValueSource.d.ts +2 -1
  5. package/bin/commander/OutputConfiguration.d.ts +3 -0
  6. package/bin/genes/Register.d.ts +2 -0
  7. package/bin/genes/Register.js +15 -11
  8. package/bin/genes/util/EsMap.js +2 -1
  9. package/bin/haxe/Exception.js +6 -1
  10. package/bin/haxe/ValueException.js +3 -2
  11. package/bin/haxe/ds/List.js +7 -2
  12. package/bin/haxe/ds/ObjectMap.js +2 -2
  13. package/bin/haxe/ds/StringMap.js +2 -2
  14. package/bin/haxe/exceptions/NotImplementedException.js +2 -2
  15. package/bin/haxe/exceptions/PosException.js +3 -2
  16. package/bin/haxe/io/Bytes.js +3 -1
  17. package/bin/haxe/io/BytesBuffer.js +6 -1
  18. package/bin/haxe/io/BytesOutput.js +2 -1
  19. package/bin/haxe/io/Output.js +1 -0
  20. package/bin/haxe/iterators/ArrayIterator.js +3 -1
  21. package/bin/haxe/zip/Writer.js +3 -1
  22. package/bin/js/lib/ConcatArray.d.ts +6 -0
  23. package/bin/js/lib/IRegExp.d.ts +53 -0
  24. package/bin/js/lib/IterableIterator.d.ts +8 -0
  25. package/bin/js/lib/IteratorResult.d.ts +2 -0
  26. package/bin/js/lib/IteratorReturnResult.d.ts +5 -0
  27. package/bin/js/lib/IteratorYieldResult.d.ts +5 -0
  28. package/bin/js/lib/RegExpExecArray.d.ts +137 -0
  29. package/bin/minimatch/MMRegExp.d.ts +55 -0
  30. package/bin/minimatch/MinimatchOptions.d.ts +102 -0
  31. package/bin/minimatch/ParseReturn.d.ts +2 -0
  32. package/bin/minimatch/ParseReturnFiltered.d.ts +2 -0
  33. package/bin/minimatch/Platform.d.ts +2 -0
  34. package/bin/pino_pretty/PrettyOptions.d.ts +2 -2
  35. package/bin/pino_pretty/default_/MessageFormatFunc.d.ts +1 -2
  36. package/bin/pino_pretty/default_/Prettifier.d.ts +2 -0
  37. package/bin/pino_pretty/pinopretty/PrettyOptions.d.ts +118 -0
  38. package/bin/sys/FileStat.d.ts +50 -0
  39. package/bin/whet/ConfigStore.d.ts +32 -0
  40. package/bin/whet/ConfigStore.js +342 -0
  41. package/bin/whet/Project.d.ts +41 -4
  42. package/bin/whet/Project.js +191 -3
  43. package/bin/whet/Source.d.ts +7 -1
  44. package/bin/whet/Source.js +40 -3
  45. package/bin/whet/SourceHash.js +18 -10
  46. package/bin/whet/Stone.d.ts +60 -9
  47. package/bin/whet/Stone.js +180 -18
  48. package/bin/whet/Whet.d.ts +0 -1
  49. package/bin/whet/Whet.js +23 -12
  50. package/bin/whet/cache/BaseCache.d.ts +23 -0
  51. package/bin/whet/cache/BaseCache.js +93 -1
  52. package/bin/whet/cache/CacheManager.d.ts +2 -0
  53. package/bin/whet/cache/CacheManager.js +38 -2
  54. package/bin/whet/cache/FileCache.d.ts +10 -2
  55. package/bin/whet/cache/FileCache.js +144 -42
  56. package/bin/whet/cache/HashCache.js +2 -1
  57. package/bin/whet/cache/MemoryCache.d.ts +3 -0
  58. package/bin/whet/cache/MemoryCache.js +53 -2
  59. package/bin/whet/magic/MinimatchType.d.ts +1 -1
  60. package/bin/whet/magic/MinimatchType.js +3 -3
  61. package/bin/whet/magic/RoutePathType.js +1 -1
  62. package/bin/whet/route/OutputFilterMatcher.js +2 -2
  63. package/bin/whet/route/RouteResult.d.ts +16 -0
  64. package/bin/whet/route/RouteResult.js +37 -4
  65. package/bin/whet/route/Router.d.ts +27 -1
  66. package/bin/whet/route/Router.js +151 -40
  67. package/bin/whet/stones/Files.d.ts +6 -1
  68. package/bin/whet/stones/Files.js +3 -2
  69. package/bin/whet/stones/JsonStone.d.ts +6 -1
  70. package/bin/whet/stones/JsonStone.js +3 -2
  71. package/bin/whet/stones/RemoteFile.d.ts +7 -2
  72. package/bin/whet/stones/RemoteFile.js +7 -4
  73. package/bin/whet/stones/Zip.d.ts +6 -1
  74. package/bin/whet/stones/Zip.js +2 -2
  75. package/bin/whet/stones/haxe/HaxeBuild.d.ts +7 -1
  76. package/bin/whet/stones/haxe/HaxeBuild.js +8 -6
  77. package/bin/whet/stones/haxe/Hxml.d.ts +7 -1
  78. package/bin/whet/stones/haxe/Hxml.js +7 -5
  79. package/bin/whet.d.ts +1 -2
  80. package/bin/whet.js +1 -1
  81. package/package.json +9 -10
package/bin/Reflect.d.ts CHANGED
@@ -8,25 +8,44 @@ abstract interface in an untyped manner. Use with care.
8
8
  export declare class Reflect {
9
9
 
10
10
  /**
11
- Returns the value of the field named `field` on object `o`.
11
+ Returns the fields of structure `o`.
12
+
13
+ This method is only guaranteed to work on anonymous structures. Refer to
14
+ `Type.getInstanceFields` for a function supporting class instances.
15
+
16
+ If `o` is null, the result is unspecified.
17
+ */
18
+ static fields(o: any): string[]
19
+
20
+ /**
21
+ Compares `a` and `b`.
22
+
23
+ If `a` is less than `b`, the result is negative. If `b` is less than
24
+ `a`, the result is positive. If `a` and `b` are equal, the result is 0.
25
+
26
+ This function is only defined if `a` and `b` are of the same type.
12
27
 
13
- If `o` is not an object or has no field named `field`, the result is
14
- null.
28
+ If that type is a function, the result is unspecified and
29
+ `Reflect.compareMethods` should be used instead.
15
30
 
16
- If the field is defined as a property, its accessors are ignored. Refer
17
- to `Reflect.getProperty` for a function supporting property accessors.
31
+ For all other types, the result is 0 if `a` and `b` are equal. If they
32
+ are not equal, the result depends on the type and is negative if:
18
33
 
19
- If `field` is null, the result is unspecified.
34
+ - Numeric types: a is less than b
35
+ - String: a is lexicographically less than b
36
+ - Other: unspecified
37
+
38
+ If `a` and `b` are null, the result is 0. If only one of them is null,
39
+ the result is unspecified.
20
40
  */
21
- static field(o: any, field: string): any
41
+ static compare<T>(a: T, b: T): number
22
42
 
23
43
  /**
24
- Returns the fields of structure `o`.
44
+ Removes the field named `field` from structure `o`.
25
45
 
26
- This method is only guaranteed to work on anonymous structures. Refer to
27
- `Type.getInstanceFields` for a function supporting class instances.
46
+ This method is only guaranteed to work on anonymous structures.
28
47
 
29
- If `o` is null, the result is unspecified.
48
+ If `o` or `field` are null, the result is unspecified.
30
49
  */
31
- static fields(o: any): string[]
50
+ static deleteField(o: any, field: string): boolean
32
51
  }
package/bin/Reflect.js CHANGED
@@ -11,25 +11,6 @@ abstract interface in an untyped manner. Use with care.
11
11
  export const Reflect = Register.global("$hxClasses")["Reflect"] =
12
12
  class Reflect {
13
13
 
14
- /**
15
- Returns the value of the field named `field` on object `o`.
16
-
17
- If `o` is not an object or has no field named `field`, the result is
18
- null.
19
-
20
- If the field is defined as a property, its accessors are ignored. Refer
21
- to `Reflect.getProperty` for a function supporting property accessors.
22
-
23
- If `field` is null, the result is unspecified.
24
- */
25
- static field(o, field) {
26
- try {
27
- return o[field];
28
- }catch (_g) {
29
- return null;
30
- };
31
- }
32
-
33
14
  /**
34
15
  Returns the fields of structure `o`.
35
16
 
@@ -50,6 +31,52 @@ class Reflect {
50
31
  };
51
32
  return a;
52
33
  }
34
+
35
+ /**
36
+ Compares `a` and `b`.
37
+
38
+ If `a` is less than `b`, the result is negative. If `b` is less than
39
+ `a`, the result is positive. If `a` and `b` are equal, the result is 0.
40
+
41
+ This function is only defined if `a` and `b` are of the same type.
42
+
43
+ If that type is a function, the result is unspecified and
44
+ `Reflect.compareMethods` should be used instead.
45
+
46
+ For all other types, the result is 0 if `a` and `b` are equal. If they
47
+ are not equal, the result depends on the type and is negative if:
48
+
49
+ - Numeric types: a is less than b
50
+ - String: a is lexicographically less than b
51
+ - Other: unspecified
52
+
53
+ If `a` and `b` are null, the result is 0. If only one of them is null,
54
+ the result is unspecified.
55
+ */
56
+ static compare(a, b) {
57
+ if (a == b) {
58
+ return 0;
59
+ } else if (a > b) {
60
+ return 1;
61
+ } else {
62
+ return -1;
63
+ };
64
+ }
65
+
66
+ /**
67
+ Removes the field named `field` from structure `o`.
68
+
69
+ This method is only guaranteed to work on anonymous structures.
70
+
71
+ If `o` or `field` are null, the result is unspecified.
72
+ */
73
+ static deleteField(o, field) {
74
+ if (!Object.prototype.hasOwnProperty.call(o, field)) {
75
+ return false;
76
+ };
77
+ delete(o[field]);
78
+ return true;
79
+ }
53
80
  static get __name__() {
54
81
  return "Reflect"
55
82
  }
@@ -0,0 +1,2 @@
1
+
2
+ export type LiteralUnion<LiteralType, BaseType> = any
@@ -1,2 +1,3 @@
1
+ import {LiteralUnion} from "./LiteralUnion"
1
2
 
2
- export type OptionValueSource = string
3
+ export type OptionValueSource = null | LiteralUnion<string, string>
@@ -1,8 +1,11 @@
1
1
 
2
2
  export type OutputConfiguration = {
3
+ getErrHasColors?: null | (() => boolean),
3
4
  getErrHelpWidth?: null | (() => number),
5
+ getOutHasColors?: null | (() => boolean),
4
6
  getOutHelpWidth?: null | (() => number),
5
7
  outputError?: null | ((str: string, write: ((str: string) => void)) => void),
8
+ stripColor?: null | ((str: string) => string),
6
9
  writeErr?: null | ((str: string) => void),
7
10
  writeOut?: null | ((str: string) => void)
8
11
  }
@@ -4,6 +4,8 @@ export declare class Register {
4
4
  static $global: any
5
5
  protected static globals: {
6
6
  }
7
+ protected static new: Symbol
8
+ protected static init: Symbol
7
9
  static global(name: number): any
8
10
  static createStatic<T>(obj: {
9
11
  }, name: string, get: (() => T)): void
@@ -46,7 +46,7 @@ export class Register {
46
46
  static extend(superClass) {
47
47
 
48
48
  function res() {
49
- this.new.apply(this, arguments)
49
+ this[Register.new].apply(this, arguments)
50
50
  }
51
51
  Object.setPrototypeOf(res.prototype, superClass.prototype)
52
52
  return res
@@ -58,26 +58,26 @@ export class Register {
58
58
  };
59
59
 
60
60
  function res() {
61
- if (defer && resolve && res.__init__) res.__init__()
62
- this.new.apply(this, arguments)
61
+ if (defer && resolve && res[Register.init]) res[Register.init]()
62
+ this[Register.new].apply(this, arguments)
63
63
  }
64
64
  if (!defer) {
65
- if (resolve && resolve.__init__) {
65
+ if (resolve && resolve[Register.init]) {
66
66
  defer = true
67
- res.__init__ = () => {
68
- resolve.__init__()
67
+ res[Register.init] = () => {
68
+ if (resolve[Register.init]) resolve[Register.init]()
69
69
  Object.setPrototypeOf(res.prototype, resolve.prototype)
70
- res.__init__ = undefined
70
+ res[Register.init] = undefined
71
71
  }
72
72
  } else if (resolve) {
73
73
  Object.setPrototypeOf(res.prototype, resolve.prototype)
74
74
  }
75
75
  } else {
76
- res.__init__ = () => {
76
+ res[Register.init] = () => {
77
77
  const superClass = resolve()
78
- if (superClass.__init__) superClass.__init__()
78
+ if (superClass[Register.init]) superClass[Register.init]()
79
79
  Object.setPrototypeOf(res.prototype, superClass.prototype)
80
- res.__init__ = undefined
80
+ res[Register.init] = undefined
81
81
  }
82
82
  }
83
83
  return res
@@ -113,10 +113,12 @@ export class Register {
113
113
 
114
114
  Register.$global = typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : undefined
115
115
  Register.globals = {}
116
+ Register["new"] = Symbol()
117
+ Register.init = Symbol()
116
118
  Register.fid = 0
117
119
  export const ArrayIterator = Register.global("$hxClasses")["genes._Register.ArrayIterator"] =
118
120
  class ArrayIterator extends Register.inherits() {
119
- new(array) {
121
+ [Register.new](array) {
120
122
  this.current = 0;
121
123
  this.array = array;
122
124
  }
@@ -133,4 +135,6 @@ class ArrayIterator extends Register.inherits() {
133
135
  return ArrayIterator
134
136
  }
135
137
  }
138
+ ArrayIterator.prototype.array = null;
139
+ ArrayIterator.prototype.current = null;
136
140
 
@@ -4,7 +4,7 @@ const $global = Register.$global
4
4
 
5
5
  export const EsMap = Register.global("$hxClasses")["genes.util.EsMap"] =
6
6
  class EsMap extends Register.inherits() {
7
- new() {
7
+ [Register.new]() {
8
8
  this.inst = new Map();
9
9
  }
10
10
  set(key, value) {
@@ -48,4 +48,5 @@ class EsMap extends Register.inherits() {
48
48
  return EsMap
49
49
  }
50
50
  }
51
+ EsMap.prototype.inst = null;
51
52
 
@@ -46,7 +46,7 @@ throw e; // rethrows native exception instead of haxe.Exception
46
46
  */
47
47
  export const Exception = Register.global("$hxClasses")["haxe.Exception"] =
48
48
  class Exception extends Register.inherits(() => Error, true) {
49
- new(message, previous, $native) {
49
+ [Register.new](message, previous, $native) {
50
50
  Error.call(this, message);
51
51
  this.message = message;
52
52
  this.__previousException = previous;
@@ -94,4 +94,9 @@ class Exception extends Register.inherits(() => Error, true) {
94
94
  return Exception
95
95
  }
96
96
  }
97
+ Exception.prototype.message = null;
98
+ Exception.prototype.native = null;
99
+ Exception.prototype.__skipStack = null;
100
+ Exception.prototype.__nativeException = null;
101
+ Exception.prototype.__previousException = null;
97
102
 
@@ -19,8 +19,8 @@ throw new ValueException("Terrible error");
19
19
  */
20
20
  export const ValueException = Register.global("$hxClasses")["haxe.ValueException"] =
21
21
  class ValueException extends Register.inherits(() => Exception, true) {
22
- new(value, previous, $native) {
23
- super.new(String(value), previous, $native);
22
+ [Register.new](value, previous, $native) {
23
+ super[Register.new](String(value), previous, $native);
24
24
  this.value = value;
25
25
  }
26
26
  static get __name__() {
@@ -33,4 +33,5 @@ class ValueException extends Register.inherits(() => Exception, true) {
33
33
  return ValueException
34
34
  }
35
35
  }
36
+ ValueException.prototype.value = null;
36
37
 
@@ -11,7 +11,7 @@ element does not imply copying the whole list content every time.
11
11
  */
12
12
  export const List = Register.global("$hxClasses")["haxe.ds.List"] =
13
13
  class List extends Register.inherits() {
14
- new() {
14
+ [Register.new]() {
15
15
  this.length = 0;
16
16
  }
17
17
 
@@ -37,11 +37,14 @@ class List extends Register.inherits() {
37
37
  return List
38
38
  }
39
39
  }
40
+ List.prototype.h = null;
41
+ List.prototype.q = null;
42
+ List.prototype.length = null;
40
43
 
41
44
 
42
45
  export const ListNode = Register.global("$hxClasses")["haxe.ds._List.ListNode"] =
43
46
  class ListNode extends Register.inherits() {
44
- new(item, next) {
47
+ [Register.new](item, next) {
45
48
  this.item = item;
46
49
  this.next = next;
47
50
  }
@@ -52,4 +55,6 @@ class ListNode extends Register.inherits() {
52
55
  return ListNode
53
56
  }
54
57
  }
58
+ ListNode.prototype.item = null;
59
+ ListNode.prototype.next = null;
55
60
 
@@ -6,8 +6,8 @@ const $global = Register.$global
6
6
 
7
7
  export const ObjectMap = Register.global("$hxClasses")["haxe.ds.ObjectMap"] =
8
8
  class ObjectMap extends Register.inherits(EsMap) {
9
- new() {
10
- super.new();
9
+ [Register.new]() {
10
+ super[Register.new]();
11
11
  }
12
12
  static get __name__() {
13
13
  return "haxe.ds.ObjectMap"
@@ -6,8 +6,8 @@ const $global = Register.$global
6
6
 
7
7
  export const StringMap = Register.global("$hxClasses")["haxe.ds.StringMap"] =
8
8
  class StringMap extends Register.inherits(EsMap) {
9
- new() {
10
- super.new();
9
+ [Register.new]() {
10
+ super[Register.new]();
11
11
  }
12
12
  static get __name__() {
13
13
  return "haxe.ds.StringMap"
@@ -8,11 +8,11 @@ An exception that is thrown when requested function or operation does not have a
8
8
  */
9
9
  export const NotImplementedException = Register.global("$hxClasses")["haxe.exceptions.NotImplementedException"] =
10
10
  class NotImplementedException extends Register.inherits(PosException) {
11
- new(message, previous, pos) {
11
+ [Register.new](message, previous, pos) {
12
12
  if (message == null) {
13
13
  message = "Not implemented";
14
14
  };
15
- super.new(message, previous, pos);
15
+ super[Register.new](message, previous, pos);
16
16
  }
17
17
  static get __name__() {
18
18
  return "haxe.exceptions.NotImplementedException"
@@ -8,8 +8,8 @@ An exception that carry position information of a place where it was created.
8
8
  */
9
9
  export const PosException = Register.global("$hxClasses")["haxe.exceptions.PosException"] =
10
10
  class PosException extends Register.inherits(Exception) {
11
- new(message, previous, pos) {
12
- super.new(message, previous);
11
+ [Register.new](message, previous, pos) {
12
+ super[Register.new](message, previous);
13
13
  if (pos == null) {
14
14
  this.posInfos = {"fileName": "(unknown)", "lineNumber": 0, "className": "(unknown)", "methodName": "(unknown)"};
15
15
  } else {
@@ -33,4 +33,5 @@ class PosException extends Register.inherits(Exception) {
33
33
  return PosException
34
34
  }
35
35
  }
36
+ PosException.prototype.posInfos = null;
36
37
 
@@ -7,7 +7,7 @@ const $global = Register.$global
7
7
 
8
8
  export const Bytes = Register.global("$hxClasses")["haxe.io.Bytes"] =
9
9
  class Bytes extends Register.inherits() {
10
- new(data) {
10
+ [Register.new](data) {
11
11
  this.length = data.byteLength;
12
12
  this.b = new Uint8Array(data);
13
13
  this.b.bufferValue = data;
@@ -75,4 +75,6 @@ class Bytes extends Register.inherits() {
75
75
  return Bytes
76
76
  }
77
77
  }
78
+ Bytes.prototype.length = null;
79
+ Bytes.prototype.b = null;
78
80
 
@@ -7,7 +7,7 @@ const $global = Register.$global
7
7
 
8
8
  export const BytesBuffer = Register.global("$hxClasses")["haxe.io.BytesBuffer"] =
9
9
  class BytesBuffer extends Register.inherits() {
10
- new() {
10
+ [Register.new]() {
11
11
  this.pos = 0;
12
12
  this.size = 0;
13
13
  }
@@ -65,4 +65,9 @@ class BytesBuffer extends Register.inherits() {
65
65
  return BytesBuffer
66
66
  }
67
67
  }
68
+ BytesBuffer.prototype.buffer = null;
69
+ BytesBuffer.prototype.view = null;
70
+ BytesBuffer.prototype.u8 = null;
71
+ BytesBuffer.prototype.pos = null;
72
+ BytesBuffer.prototype.size = null;
68
73
 
@@ -6,7 +6,7 @@ const $global = Register.$global
6
6
 
7
7
  export const BytesOutput = Register.global("$hxClasses")["haxe.io.BytesOutput"] =
8
8
  class BytesOutput extends Register.inherits(Output) {
9
- new() {
9
+ [Register.new]() {
10
10
  this.b = new BytesBuffer();
11
11
  }
12
12
  writeByte(c) {
@@ -36,4 +36,5 @@ class BytesOutput extends Register.inherits(Output) {
36
36
  return BytesOutput
37
37
  }
38
38
  }
39
+ BytesOutput.prototype.b = null;
39
40
 
@@ -123,4 +123,5 @@ class Output {
123
123
  return Output
124
124
  }
125
125
  }
126
+ Output.prototype.bigEndian = null;
126
127
 
@@ -7,7 +7,7 @@ This iterator is used only when `Array<T>` is passed to `Iterable<T>`
7
7
  */
8
8
  export const ArrayIterator = Register.global("$hxClasses")["haxe.iterators.ArrayIterator"] =
9
9
  class ArrayIterator extends Register.inherits() {
10
- new(array) {
10
+ [Register.new](array) {
11
11
  this.current = 0;
12
12
  this.array = array;
13
13
  }
@@ -32,4 +32,6 @@ class ArrayIterator extends Register.inherits() {
32
32
  return ArrayIterator
33
33
  }
34
34
  }
35
+ ArrayIterator.prototype.array = null;
36
+ ArrayIterator.prototype.current = null;
35
37
 
@@ -9,7 +9,7 @@ const $global = Register.$global
9
9
 
10
10
  export const Writer = Register.global("$hxClasses")["haxe.zip.Writer"] =
11
11
  class Writer extends Register.inherits() {
12
- new(o) {
12
+ [Register.new](o) {
13
13
  this.o = o;
14
14
  this.files = new List();
15
15
  }
@@ -146,4 +146,6 @@ class Writer extends Register.inherits() {
146
146
  return Writer
147
147
  }
148
148
  }
149
+ Writer.prototype.o = null;
150
+ Writer.prototype.files = null;
149
151
 
@@ -0,0 +1,6 @@
1
+
2
+ export type ConcatArray<T> = {
3
+ join: (separator: string) => string,
4
+ length: number,
5
+ slice: (start: number, end?: number) => T[]
6
+ }
@@ -0,0 +1,53 @@
1
+ import {RegExpExecArray} from "./RegExpExecArray"
2
+
3
+ export type IRegExp = {
4
+ compile: () => RegExp,
5
+ /**
6
+ Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
7
+ */
8
+ exec: (string: string) => null | RegExpExecArray,
9
+ /**
10
+ Returns a string indicating the flags of the regular expression in question. This field is read-only.
11
+ The characters in this string are sequenced and concatenated in the following order:
12
+
13
+ - "g" for global
14
+ - "i" for ignoreCase
15
+ - "m" for multiline
16
+ - "u" for unicode
17
+ - "y" for sticky
18
+
19
+ If no flags are set, the value is the empty string.
20
+ */
21
+ flags: string,
22
+ /**
23
+ Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only.
24
+ */
25
+ global: boolean,
26
+ /**
27
+ Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only.
28
+ */
29
+ ignoreCase: boolean,
30
+ lastIndex: number,
31
+ /**
32
+ Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only.
33
+ */
34
+ multiline: boolean,
35
+ /**
36
+ Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal.
37
+ */
38
+ source: string,
39
+ /**
40
+ Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
41
+ expression. Default is false. Read-only.
42
+ */
43
+ sticky: boolean,
44
+ /**
45
+ Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
46
+ */
47
+ test: (string: string) => boolean,
48
+ /**
49
+ Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
50
+ expression. Default is false. Read-only.
51
+ */
52
+ unicode: boolean
53
+ }
@@ -0,0 +1,8 @@
1
+ import {IteratorResult} from "./IteratorResult"
2
+ import {Rest} from "../../haxe/extern/Rest"
3
+
4
+ export type IterableIterator<T> = {
5
+ next: (...args: Rest<any>) => IteratorResult<T, any>,
6
+ return_?: null | ((value: any) => IteratorResult<T, any>),
7
+ throw_?: null | ((e: any) => IteratorResult<T, any>)
8
+ }
@@ -0,0 +1,2 @@
1
+
2
+ export type IteratorResult<T, TReturn> = any
@@ -0,0 +1,5 @@
1
+
2
+ export type IteratorReturnResult<TReturn> = {
3
+ done: boolean,
4
+ value: TReturn
5
+ }
@@ -0,0 +1,5 @@
1
+
2
+ export type IteratorYieldResult<TYield> = {
3
+ done?: null | boolean,
4
+ value: TYield
5
+ }