@fable-org/fable-library-js 2.0.0-beta.3 → 2.0.0-beta.5
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.
- package/Array.js +64 -60
- package/Async.js +8 -7
- package/AsyncBuilder.js +6 -6
- package/BigInt.js +3 -3
- package/Boolean.js +2 -1
- package/CHANGELOG.md +12 -0
- package/Char.js +64 -31
- package/CollectionUtil.js +3 -3
- package/Date.js +50 -46
- package/DateOffset.js +38 -48
- package/DateOnly.js +6 -6
- package/Decimal.js +4 -4
- package/Double.js +2 -1
- package/FSharp.Collections.js +28 -10
- package/FSharp.Core.js +19 -19
- package/Global.js +21 -0
- package/Guid.js +5 -4
- package/Int32.js +17 -17
- package/List.js +74 -63
- package/Long.js +3 -2
- package/MailboxProcessor.js +2 -1
- package/Map.js +39 -42
- package/MapUtil.js +4 -4
- package/MutableMap.js +22 -10
- package/MutableSet.js +3 -3
- package/Native.js +9 -3
- package/Option.js +10 -2
- package/Random.js +13 -12
- package/Range.js +2 -2
- package/Reflection.js +16 -16
- package/RegExp.js +4 -3
- package/Seq.js +38 -46
- package/Set.js +41 -42
- package/String.js +44 -35
- package/System.Collections.Generic.js +22 -6
- package/System.Text.js +8 -8
- package/System.js +283 -0
- package/TimeOnly.js +6 -6
- package/TimeSpan.js +5 -5
- package/Types.js +1 -17
- package/Uri.js +25 -19
- package/Util.js +32 -9
- package/package.json +23 -23
- package/Array.d.ts +0 -123
- package/Async.d.ts +0 -26
- package/AsyncBuilder.d.ts +0 -59
- package/BigInt.d.ts +0 -129
- package/BitConverter.d.ts +0 -27
- package/Boolean.d.ts +0 -3
- package/Char.d.ts +0 -65
- package/Choice.d.ts +0 -121
- package/CollectionUtil.d.ts +0 -7
- package/ConditionalWeakTable.d.ts +0 -9
- package/Date.d.ts +0 -69
- package/DateOffset.d.ts +0 -64
- package/DateOnly.d.ts +0 -18
- package/Decimal.d.ts +0 -63
- package/Double.d.ts +0 -11
- package/Encoding.d.ts +0 -12
- package/Event.d.ts +0 -31
- package/FSharp.Collections.d.ts +0 -7
- package/FSharp.Core.CompilerServices.d.ts +0 -12
- package/FSharp.Core.d.ts +0 -31
- package/Global.d.ts +0 -24
- package/Guid.d.ts +0 -10
- package/Int32.d.ts +0 -28
- package/List.d.ts +0 -143
- package/Long.d.ts +0 -3
- package/MailboxProcessor.d.ts +0 -25
- package/Map.d.ts +0 -178
- package/MapUtil.d.ts +0 -12
- package/MutableMap.d.ts +0 -52
- package/MutableSet.d.ts +0 -39
- package/Native.d.ts +0 -2
- package/Numeric.d.ts +0 -20
- package/Observable.d.ts +0 -32
- package/Option.d.ts +0 -28
- package/Random.d.ts +0 -37
- package/Range.d.ts +0 -12
- package/Reflection.d.ts +0 -119
- package/RegExp.d.ts +0 -10
- package/Result.d.ts +0 -37
- package/Seq.d.ts +0 -165
- package/Seq2.d.ts +0 -18
- package/Set.d.ts +0 -190
- package/String.d.ts +0 -58
- package/System.Collections.Generic.d.ts +0 -79
- package/System.Text.d.ts +0 -39
- package/SystemException.d.ts +0 -5
- package/SystemException.js +0 -5
- package/TimeOnly.d.ts +0 -15
- package/TimeSpan.d.ts +0 -35
- package/Timer.d.ts +0 -19
- package/Types.d.ts +0 -58
- package/Unicode.13.0.0.d.ts +0 -2
- package/Uri.d.ts +0 -31
- package/Util.d.ts +0 -210
- package/lib/big.d.ts +0 -5
package/Map.d.ts
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { TypeInfo } from "./Reflection.js";
|
|
2
|
-
import { Option } from "./Option.js";
|
|
3
|
-
import { int32 } from "./Int32.js";
|
|
4
|
-
import { IMap, IEnumerator, IComparer } from "./Util.js";
|
|
5
|
-
import { FSharpList } from "./List.js";
|
|
6
|
-
import { FSharpRef, Record } from "./Types.js";
|
|
7
|
-
export declare class MapTreeLeaf$2<Key, Value> {
|
|
8
|
-
readonly v: Value;
|
|
9
|
-
readonly k: Key;
|
|
10
|
-
constructor(k: Key, v: Value);
|
|
11
|
-
}
|
|
12
|
-
export declare function MapTreeLeaf$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo;
|
|
13
|
-
export declare function MapTreeLeaf$2_$ctor_5BDDA1<Key, Value>(k: Key, v: Value): MapTreeLeaf$2<Key, Value>;
|
|
14
|
-
export declare function MapTreeLeaf$2__get_Key<Key, Value>(_: MapTreeLeaf$2<Key, Value>): Key;
|
|
15
|
-
export declare function MapTreeLeaf$2__get_Value<Key, Value>(_: MapTreeLeaf$2<Key, Value>): Value;
|
|
16
|
-
export declare class MapTreeNode$2<Key, Value> extends MapTreeLeaf$2<Key, Value> {
|
|
17
|
-
readonly right: Option<MapTreeLeaf$2<Key, Value>>;
|
|
18
|
-
readonly left: Option<MapTreeLeaf$2<Key, Value>>;
|
|
19
|
-
readonly h: int32;
|
|
20
|
-
constructor(k: Key, v: Value, left: Option<MapTreeLeaf$2<Key, Value>>, right: Option<MapTreeLeaf$2<Key, Value>>, h: int32);
|
|
21
|
-
}
|
|
22
|
-
export declare function MapTreeNode$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo;
|
|
23
|
-
export declare function MapTreeNode$2_$ctor_Z39DE9543<Key, Value>(k: Key, v: Value, left: Option<MapTreeLeaf$2<Key, Value>>, right: Option<MapTreeLeaf$2<Key, Value>>, h: int32): MapTreeNode$2<Key, Value>;
|
|
24
|
-
export declare function MapTreeNode$2__get_Left<Key, Value>(_: MapTreeNode$2<Key, Value>): Option<MapTreeLeaf$2<Key, Value>>;
|
|
25
|
-
export declare function MapTreeNode$2__get_Right<Key, Value>(_: MapTreeNode$2<Key, Value>): Option<MapTreeLeaf$2<Key, Value>>;
|
|
26
|
-
export declare function MapTreeNode$2__get_Height<Key, Value>(_: MapTreeNode$2<Key, Value>): int32;
|
|
27
|
-
export declare function MapTreeModule_empty<Key, Value>(): Option<MapTreeLeaf$2<Key, Value>>;
|
|
28
|
-
export declare function MapTreeModule_sizeAux<Key, Value>(acc_mut: int32, m_mut: Option<MapTreeLeaf$2<Key, Value>>): int32;
|
|
29
|
-
export declare function MapTreeModule_size<$a, $b>(x: Option<MapTreeLeaf$2<$a, $b>>): int32;
|
|
30
|
-
export declare function MapTreeModule_mk<Key, Value>(l: Option<MapTreeLeaf$2<Key, Value>>, k: Key, v: Value, r: Option<MapTreeLeaf$2<Key, Value>>): Option<MapTreeLeaf$2<Key, Value>>;
|
|
31
|
-
export declare function MapTreeModule_rebalance<Key, Value>(t1: Option<MapTreeLeaf$2<Key, Value>>, k: Key, v: Value, t2: Option<MapTreeLeaf$2<Key, Value>>): Option<MapTreeLeaf$2<Key, Value>>;
|
|
32
|
-
export declare function MapTreeModule_add<Key, Value>(comparer: IComparer<Key>, k: Key, v: Value, m: Option<MapTreeLeaf$2<Key, Value>>): Option<MapTreeLeaf$2<Key, Value>>;
|
|
33
|
-
export declare function MapTreeModule_tryFind<Key, Value>(comparer_mut: IComparer<Key>, k_mut: Key, m_mut: Option<MapTreeLeaf$2<Key, Value>>): Option<Value>;
|
|
34
|
-
export declare function MapTreeModule_find<Key, Value>(comparer: IComparer<Key>, k: Key, m: Option<MapTreeLeaf$2<Key, Value>>): Value;
|
|
35
|
-
export declare function MapTreeModule_partition1<Key, $a>(comparer: IComparer<Key>, f: any, k: Key, v: $a, acc1: Option<MapTreeLeaf$2<Key, $a>>, acc2: Option<MapTreeLeaf$2<Key, $a>>): [Option<MapTreeLeaf$2<Key, $a>>, Option<MapTreeLeaf$2<Key, $a>>];
|
|
36
|
-
export declare function MapTreeModule_partitionAux<Key, Value>(comparer_mut: IComparer<Key>, f_mut: any, m_mut: Option<MapTreeLeaf$2<Key, Value>>, acc__mut: Option<MapTreeLeaf$2<Key, Value>>, acc__1_mut: Option<MapTreeLeaf$2<Key, Value>>): [Option<MapTreeLeaf$2<Key, Value>>, Option<MapTreeLeaf$2<Key, Value>>];
|
|
37
|
-
export declare function MapTreeModule_partition<Key, $a>(comparer: IComparer<Key>, f: ((arg0: Key, arg1: $a) => boolean), m: Option<MapTreeLeaf$2<Key, $a>>): [Option<MapTreeLeaf$2<Key, $a>>, Option<MapTreeLeaf$2<Key, $a>>];
|
|
38
|
-
export declare function MapTreeModule_filter1<Key, $a>(comparer: IComparer<Key>, f: any, k: Key, v: $a, acc: Option<MapTreeLeaf$2<Key, $a>>): Option<MapTreeLeaf$2<Key, $a>>;
|
|
39
|
-
export declare function MapTreeModule_filterAux<Key, Value>(comparer_mut: IComparer<Key>, f_mut: any, m_mut: Option<MapTreeLeaf$2<Key, Value>>, acc_mut: Option<MapTreeLeaf$2<Key, Value>>): Option<MapTreeLeaf$2<Key, Value>>;
|
|
40
|
-
export declare function MapTreeModule_filter<Key, $a>(comparer: IComparer<Key>, f: ((arg0: Key, arg1: $a) => boolean), m: Option<MapTreeLeaf$2<Key, $a>>): Option<MapTreeLeaf$2<Key, $a>>;
|
|
41
|
-
export declare function MapTreeModule_spliceOutSuccessor<Key, Value>(m: Option<MapTreeLeaf$2<Key, Value>>): [Key, Value, Option<MapTreeLeaf$2<Key, Value>>];
|
|
42
|
-
export declare function MapTreeModule_remove<Key, Value>(comparer: IComparer<Key>, k: Key, m: Option<MapTreeLeaf$2<Key, Value>>): Option<MapTreeLeaf$2<Key, Value>>;
|
|
43
|
-
export declare function MapTreeModule_change<Key, Value>(comparer: IComparer<Key>, k: Key, u: ((arg0: Option<Value>) => Option<Value>), m: Option<MapTreeLeaf$2<Key, Value>>): Option<MapTreeLeaf$2<Key, Value>>;
|
|
44
|
-
export declare function MapTreeModule_mem<Key, Value>(comparer_mut: IComparer<Key>, k_mut: Key, m_mut: Option<MapTreeLeaf$2<Key, Value>>): boolean;
|
|
45
|
-
export declare function MapTreeModule_iterOpt<Key, Value>(f_mut: any, m_mut: Option<MapTreeLeaf$2<Key, Value>>): void;
|
|
46
|
-
export declare function MapTreeModule_iter<$a, $b>(f: ((arg0: $a, arg1: $b) => void), m: Option<MapTreeLeaf$2<$a, $b>>): void;
|
|
47
|
-
export declare function MapTreeModule_tryPickOpt<Key, Value, $a>(f_mut: any, m_mut: Option<MapTreeLeaf$2<Key, Value>>): Option<$a>;
|
|
48
|
-
export declare function MapTreeModule_tryPick<$a, $b, $c>(f: ((arg0: $a, arg1: $b) => Option<$c>), m: Option<MapTreeLeaf$2<$a, $b>>): Option<$c>;
|
|
49
|
-
export declare function MapTreeModule_existsOpt<Key, Value>(f_mut: any, m_mut: Option<MapTreeLeaf$2<Key, Value>>): boolean;
|
|
50
|
-
export declare function MapTreeModule_exists<$a, $b>(f: ((arg0: $a, arg1: $b) => boolean), m: Option<MapTreeLeaf$2<$a, $b>>): boolean;
|
|
51
|
-
export declare function MapTreeModule_forallOpt<Key, Value>(f_mut: any, m_mut: Option<MapTreeLeaf$2<Key, Value>>): boolean;
|
|
52
|
-
export declare function MapTreeModule_forall<$a, $b>(f: ((arg0: $a, arg1: $b) => boolean), m: Option<MapTreeLeaf$2<$a, $b>>): boolean;
|
|
53
|
-
export declare function MapTreeModule_map<Value, Result, Key>(f: ((arg0: Value) => Result), m: Option<MapTreeLeaf$2<Key, Value>>): Option<MapTreeLeaf$2<Key, Result>>;
|
|
54
|
-
export declare function MapTreeModule_mapiOpt<Key, Value, Result>(f: any, m: Option<MapTreeLeaf$2<Key, Value>>): Option<MapTreeLeaf$2<Key, Result>>;
|
|
55
|
-
export declare function MapTreeModule_mapi<$a, $b, $c>(f: ((arg0: $a, arg1: $b) => $c), m: Option<MapTreeLeaf$2<$a, $b>>): Option<MapTreeLeaf$2<$a, $c>>;
|
|
56
|
-
export declare function MapTreeModule_foldBackOpt<Key, Value, $a>(f_mut: any, m_mut: Option<MapTreeLeaf$2<Key, Value>>, x_mut: $a): $a;
|
|
57
|
-
export declare function MapTreeModule_foldBack<$a, $b, $c>(f: ((arg0: $a, arg1: $b, arg2: $c) => $c), m: Option<MapTreeLeaf$2<$a, $b>>, x: $c): $c;
|
|
58
|
-
export declare function MapTreeModule_foldOpt<$a, Key, Value>(f_mut: any, x_mut: $a, m_mut: Option<MapTreeLeaf$2<Key, Value>>): $a;
|
|
59
|
-
export declare function MapTreeModule_fold<$a, $b, $c>(f: ((arg0: $a, arg1: $b, arg2: $c) => $a), x: $a, m: Option<MapTreeLeaf$2<$b, $c>>): $a;
|
|
60
|
-
export declare function MapTreeModule_foldSectionOpt<Key, Value, a>(comparer: IComparer<Key>, lo: Key, hi: Key, f: any, m: Option<MapTreeLeaf$2<Key, Value>>, x: a): a;
|
|
61
|
-
export declare function MapTreeModule_foldSection<Key, $a, $b>(comparer: IComparer<Key>, lo: Key, hi: Key, f: ((arg0: Key, arg1: $a, arg2: $b) => $b), m: Option<MapTreeLeaf$2<Key, $a>>, x: $b): $b;
|
|
62
|
-
export declare function MapTreeModule_toList<Key, Value>(m: Option<MapTreeLeaf$2<Key, Value>>): FSharpList<[Key, Value]>;
|
|
63
|
-
export declare function MapTreeModule_copyToArray<$a, $b>(m: Option<MapTreeLeaf$2<$a, $b>>, arr: [$a, $b][], i: int32): void;
|
|
64
|
-
export declare function MapTreeModule_toArray<$a, $b>(m: Option<MapTreeLeaf$2<$a, $b>>): [$a, $b][];
|
|
65
|
-
export declare function MapTreeModule_ofList<$a, $b>(comparer: IComparer<$a>, l: FSharpList<[$a, $b]>): Option<MapTreeLeaf$2<$a, $b>>;
|
|
66
|
-
export declare function MapTreeModule_mkFromEnumerator<$a, $b>(comparer_mut: IComparer<$a>, acc_mut: Option<MapTreeLeaf$2<$a, $b>>, e_mut: IEnumerator<[$a, $b]>): Option<MapTreeLeaf$2<$a, $b>>;
|
|
67
|
-
export declare function MapTreeModule_ofArray<Key, Value>(comparer: IComparer<Key>, arr: [Key, Value][]): Option<MapTreeLeaf$2<Key, Value>>;
|
|
68
|
-
export declare function MapTreeModule_ofSeq<Key, Value>(comparer: IComparer<Key>, c: Iterable<[Key, Value]>): Option<MapTreeLeaf$2<Key, Value>>;
|
|
69
|
-
export declare class MapTreeModule_MapIterator$2<Key, Value> extends Record {
|
|
70
|
-
stack: FSharpList<Option<MapTreeLeaf$2<Key, Value>>>;
|
|
71
|
-
started: boolean;
|
|
72
|
-
constructor(stack: FSharpList<Option<MapTreeLeaf$2<Key, Value>>>, started: boolean);
|
|
73
|
-
}
|
|
74
|
-
export declare function MapTreeModule_MapIterator$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo;
|
|
75
|
-
export declare function MapTreeModule_collapseLHS<Key, Value>(stack_mut: FSharpList<Option<MapTreeLeaf$2<Key, Value>>>): FSharpList<Option<MapTreeLeaf$2<Key, Value>>>;
|
|
76
|
-
export declare function MapTreeModule_mkIterator<$a, $b>(m: Option<MapTreeLeaf$2<$a, $b>>): MapTreeModule_MapIterator$2<$a, $b>;
|
|
77
|
-
export declare function MapTreeModule_notStarted<$a>(): $a;
|
|
78
|
-
export declare function MapTreeModule_alreadyFinished<$a>(): $a;
|
|
79
|
-
export declare function MapTreeModule_current<Key, Value>(i: MapTreeModule_MapIterator$2<Key, Value>): [Key, Value];
|
|
80
|
-
export declare function MapTreeModule_moveNext<Key, Value>(i: MapTreeModule_MapIterator$2<Key, Value>): boolean;
|
|
81
|
-
export declare function MapTreeModule_mkIEnumerator<a, b>(m: Option<MapTreeLeaf$2<a, b>>): IEnumerator<[a, b]>;
|
|
82
|
-
export declare function MapTreeModule_toSeq<$a, $b>(s: Option<MapTreeLeaf$2<$a, $b>>): Iterable<[$a, $b]>;
|
|
83
|
-
export declare function MapTreeModule_leftmost<Key, Value>(m_mut: Option<MapTreeLeaf$2<Key, Value>>): [Key, Value];
|
|
84
|
-
export declare function MapTreeModule_rightmost<Key, Value>(m_mut: Option<MapTreeLeaf$2<Key, Value>>): [Key, Value];
|
|
85
|
-
export declare class FSharpMap<Key, Value> implements IMap<Key, Value>, Iterable<[Key, Value]>, Iterable<[Key, Value]> {
|
|
86
|
-
readonly tree: Option<MapTreeLeaf$2<Key, Value>>;
|
|
87
|
-
readonly comparer: IComparer<Key>;
|
|
88
|
-
constructor(comparer: IComparer<Key>, tree: Option<MapTreeLeaf$2<Key, Value>>);
|
|
89
|
-
GetHashCode(): int32;
|
|
90
|
-
Equals(that: any): boolean;
|
|
91
|
-
toString(): string;
|
|
92
|
-
get [Symbol.toStringTag](): string;
|
|
93
|
-
toJSON(): any;
|
|
94
|
-
GetEnumerator(): IEnumerator<[Key, Value]>;
|
|
95
|
-
[Symbol.iterator](): Iterator<[Key, Value]>;
|
|
96
|
-
"System.Collections.IEnumerable.GetEnumerator"(): IEnumerator<any>;
|
|
97
|
-
CompareTo(obj: any): int32;
|
|
98
|
-
"System.Collections.Generic.ICollection`1.Add2B595"(x: [Key, Value]): void;
|
|
99
|
-
"System.Collections.Generic.ICollection`1.Clear"(): void;
|
|
100
|
-
"System.Collections.Generic.ICollection`1.Remove2B595"(x: [Key, Value]): boolean;
|
|
101
|
-
"System.Collections.Generic.ICollection`1.Contains2B595"(x: [Key, Value]): boolean;
|
|
102
|
-
"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(arr: [Key, Value][], i: int32): void;
|
|
103
|
-
"System.Collections.Generic.ICollection`1.get_IsReadOnly"(): boolean;
|
|
104
|
-
"System.Collections.Generic.ICollection`1.get_Count"(): int32;
|
|
105
|
-
"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(): int32;
|
|
106
|
-
get size(): int32;
|
|
107
|
-
clear(): void;
|
|
108
|
-
delete(_arg: Key): boolean;
|
|
109
|
-
entries(): Iterable<[Key, Value]>;
|
|
110
|
-
get(k: Key): Value;
|
|
111
|
-
has(k: Key): boolean;
|
|
112
|
-
keys(): Iterable<Key>;
|
|
113
|
-
set(k: Key, v: Value): IMap<Key, Value>;
|
|
114
|
-
values(): Iterable<Value>;
|
|
115
|
-
forEach(f: ((arg0: Value, arg1: Key, arg2: IMap<Key, Value>) => void), thisArg?: Option<any>): void;
|
|
116
|
-
}
|
|
117
|
-
export declare function FSharpMap_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo;
|
|
118
|
-
export declare function FSharpMap_$ctor<Key, Value>(comparer: IComparer<Key>, tree: Option<MapTreeLeaf$2<Key, Value>>): FSharpMap<Key, Value>;
|
|
119
|
-
export declare function FSharpMap_Empty<Key, Value>(comparer: IComparer<Key>): FSharpMap<Key, Value>;
|
|
120
|
-
export declare function FSharpMap__get_Comparer<Key, Value>(m: FSharpMap<Key, Value>): IComparer<Key>;
|
|
121
|
-
export declare function FSharpMap__get_Tree<Key, Value>(m: FSharpMap<Key, Value>): Option<MapTreeLeaf$2<Key, Value>>;
|
|
122
|
-
export declare function FSharpMap__Add<Key, Value>(m: FSharpMap<Key, Value>, key: Key, value: Value): FSharpMap<Key, Value>;
|
|
123
|
-
export declare function FSharpMap__Change<Key, Value>(m: FSharpMap<Key, Value>, key: Key, f: ((arg0: Option<Value>) => Option<Value>)): FSharpMap<Key, Value>;
|
|
124
|
-
export declare function FSharpMap__get_IsEmpty<Key, Value>(m: FSharpMap<Key, Value>): boolean;
|
|
125
|
-
export declare function FSharpMap__get_Item<Key, Value>(m: FSharpMap<Key, Value>, key: Key): Value;
|
|
126
|
-
export declare function FSharpMap__TryPick<Key, Value, $a>(m: FSharpMap<Key, Value>, f: ((arg0: Key, arg1: Value) => Option<$a>)): Option<$a>;
|
|
127
|
-
export declare function FSharpMap__Exists<Key, Value>(m: FSharpMap<Key, Value>, predicate: ((arg0: Key, arg1: Value) => boolean)): boolean;
|
|
128
|
-
export declare function FSharpMap__Filter<Key, Value>(m: FSharpMap<Key, Value>, predicate: ((arg0: Key, arg1: Value) => boolean)): FSharpMap<Key, Value>;
|
|
129
|
-
export declare function FSharpMap__ForAll<Key, Value>(m: FSharpMap<Key, Value>, predicate: ((arg0: Key, arg1: Value) => boolean)): boolean;
|
|
130
|
-
export declare function FSharpMap__Fold<Key, Value, $a>(m: FSharpMap<Key, Value>, f: ((arg0: Key, arg1: Value, arg2: $a) => $a), acc: $a): $a;
|
|
131
|
-
export declare function FSharpMap__FoldSection<Key, Value, z>(m: FSharpMap<Key, Value>, lo: Key, hi: Key, f: ((arg0: Key, arg1: Value, arg2: z) => z), acc: z): z;
|
|
132
|
-
export declare function FSharpMap__Iterate<Key, Value>(m: FSharpMap<Key, Value>, f: ((arg0: Key, arg1: Value) => void)): void;
|
|
133
|
-
export declare function FSharpMap__MapRange<Key, Value, Result>(m: FSharpMap<Key, Value>, f: ((arg0: Value) => Result)): FSharpMap<Key, Result>;
|
|
134
|
-
export declare function FSharpMap__Map<Key, Value, b>(m: FSharpMap<Key, Value>, f: ((arg0: Key, arg1: Value) => b)): FSharpMap<Key, b>;
|
|
135
|
-
export declare function FSharpMap__Partition<Key, Value>(m: FSharpMap<Key, Value>, predicate: ((arg0: Key, arg1: Value) => boolean)): [FSharpMap<Key, Value>, FSharpMap<Key, Value>];
|
|
136
|
-
export declare function FSharpMap__get_Count<Key, Value>(m: FSharpMap<Key, Value>): int32;
|
|
137
|
-
export declare function FSharpMap__ContainsKey<Key, Value>(m: FSharpMap<Key, Value>, key: Key): boolean;
|
|
138
|
-
export declare function FSharpMap__Remove<Key, Value>(m: FSharpMap<Key, Value>, key: Key): FSharpMap<Key, Value>;
|
|
139
|
-
export declare function FSharpMap__TryGetValue<Key, Value>(_: FSharpMap<Key, Value>, key: Key, value: FSharpRef<Value>): boolean;
|
|
140
|
-
export declare function FSharpMap__get_Keys<Key, Value>(_: FSharpMap<Key, Value>): Iterable<Key>;
|
|
141
|
-
export declare function FSharpMap__get_Values<Key, Value>(_: FSharpMap<Key, Value>): Iterable<Value>;
|
|
142
|
-
export declare function FSharpMap__get_MinKeyValue<Key, Value>(m: FSharpMap<Key, Value>): [Key, Value];
|
|
143
|
-
export declare function FSharpMap__get_MaxKeyValue<Key, Value>(m: FSharpMap<Key, Value>): [Key, Value];
|
|
144
|
-
export declare function FSharpMap__TryFind<Key, Value>(m: FSharpMap<Key, Value>, key: Key): Option<Value>;
|
|
145
|
-
export declare function FSharpMap__ToList<Key, Value>(m: FSharpMap<Key, Value>): FSharpList<[Key, Value]>;
|
|
146
|
-
export declare function FSharpMap__ToArray<Key, Value>(m: FSharpMap<Key, Value>): [Key, Value][];
|
|
147
|
-
export declare function FSharpMap__ComputeHashCode<Key, Value>(this$: FSharpMap<Key, Value>): int32;
|
|
148
|
-
export declare function isEmpty<$a, $b>(table: FSharpMap<$a, $b>): boolean;
|
|
149
|
-
export declare function add<$a, $b>(key: $a, value: $b, table: FSharpMap<$a, $b>): FSharpMap<$a, $b>;
|
|
150
|
-
export declare function change<$a, $b>(key: $a, f: ((arg0: Option<$b>) => Option<$b>), table: FSharpMap<$a, $b>): FSharpMap<$a, $b>;
|
|
151
|
-
export declare function find<$a, $b>(key: $a, table: FSharpMap<$a, $b>): $b;
|
|
152
|
-
export declare function tryFind<$a, $b>(key: $a, table: FSharpMap<$a, $b>): Option<$b>;
|
|
153
|
-
export declare function remove<$a, $b>(key: $a, table: FSharpMap<$a, $b>): FSharpMap<$a, $b>;
|
|
154
|
-
export declare function containsKey<$a, $b>(key: $a, table: FSharpMap<$a, $b>): boolean;
|
|
155
|
-
export declare function iterate<$a, $b>(action: ((arg0: $a, arg1: $b) => void), table: FSharpMap<$a, $b>): void;
|
|
156
|
-
export declare function tryPick<$a, $b, $c>(chooser: ((arg0: $a, arg1: $b) => Option<$c>), table: FSharpMap<$a, $b>): Option<$c>;
|
|
157
|
-
export declare function pick<$a, $b, $c>(chooser: ((arg0: $a, arg1: $b) => Option<$c>), table: FSharpMap<$a, $b>): $c;
|
|
158
|
-
export declare function exists<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), table: FSharpMap<$a, $b>): boolean;
|
|
159
|
-
export declare function filter<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), table: FSharpMap<$a, $b>): FSharpMap<$a, $b>;
|
|
160
|
-
export declare function partition<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), table: FSharpMap<$a, $b>): [FSharpMap<$a, $b>, FSharpMap<$a, $b>];
|
|
161
|
-
export declare function forAll<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), table: FSharpMap<$a, $b>): boolean;
|
|
162
|
-
export declare function map<$a, $b, $c>(mapping: ((arg0: $a, arg1: $b) => $c), table: FSharpMap<$a, $b>): FSharpMap<$a, $c>;
|
|
163
|
-
export declare function fold<Key, T, State>(folder: ((arg0: State, arg1: Key, arg2: T) => State), state: State, table: FSharpMap<Key, T>): State;
|
|
164
|
-
export declare function foldBack<Key, T, State>(folder: ((arg0: Key, arg1: T, arg2: State) => State), table: FSharpMap<Key, T>, state: State): State;
|
|
165
|
-
export declare function toSeq<$a, $b>(table: FSharpMap<$a, $b>): Iterable<[$a, $b]>;
|
|
166
|
-
export declare function findKey<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), table: FSharpMap<$a, $b>): $a;
|
|
167
|
-
export declare function tryFindKey<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), table: FSharpMap<$a, $b>): Option<$a>;
|
|
168
|
-
export declare function ofList<Key, Value>(elements: FSharpList<[Key, Value]>, comparer: IComparer<Key>): FSharpMap<Key, Value>;
|
|
169
|
-
export declare function ofSeq<T, $a>(elements: Iterable<[T, $a]>, comparer: IComparer<T>): FSharpMap<T, $a>;
|
|
170
|
-
export declare function ofArray<Key, Value>(elements: [Key, Value][], comparer: IComparer<Key>): FSharpMap<Key, Value>;
|
|
171
|
-
export declare function toList<$a, $b>(table: FSharpMap<$a, $b>): FSharpList<[$a, $b]>;
|
|
172
|
-
export declare function toArray<$a, $b>(table: FSharpMap<$a, $b>): [$a, $b][];
|
|
173
|
-
export declare function keys<K, V>(table: FSharpMap<K, V>): Iterable<K>;
|
|
174
|
-
export declare function values<K, V>(table: FSharpMap<K, V>): Iterable<V>;
|
|
175
|
-
export declare function minKeyValue<$a, $b>(table: FSharpMap<$a, $b>): [$a, $b];
|
|
176
|
-
export declare function maxKeyValue<$a, $b>(table: FSharpMap<$a, $b>): [$a, $b];
|
|
177
|
-
export declare function empty<Key, Value>(comparer: IComparer<Key>): FSharpMap<Key, Value>;
|
|
178
|
-
export declare function count<$a, $b>(table: FSharpMap<$a, $b>): int32;
|
package/MapUtil.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IMap, IMapOrWeakMap, ISet } from "./Util.js";
|
|
2
|
-
import { FSharpRef } from "./Types.js";
|
|
3
|
-
export declare function keyValueList(fields: Iterable<any>, caseRule?: number): {
|
|
4
|
-
[k: string]: any;
|
|
5
|
-
};
|
|
6
|
-
export declare function containsValue<K, V>(v: V, map: IMap<K, V>): boolean;
|
|
7
|
-
export declare function tryGetValue<K, V>(map: IMapOrWeakMap<K, V>, key: K, defaultValue: FSharpRef<V>): boolean;
|
|
8
|
-
export declare function addToSet<T>(v: T, set: ISet<T>): boolean;
|
|
9
|
-
export declare function tryAddToDict<K, V>(dict: IMapOrWeakMap<K, V>, k: K, v: V): boolean;
|
|
10
|
-
export declare function addToDict<K, V>(dict: IMapOrWeakMap<K, V>, k: K, v: V): void;
|
|
11
|
-
export declare function getItemFromDict<K, V>(map: IMap<K, V>, key: K): V;
|
|
12
|
-
export declare function getItemFromDictOrCreate<K, V>(map: IMapOrWeakMap<K, V>, key: K, createValue: (key: K) => V): V;
|
package/MutableMap.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { IEqualityComparer, IMap, IEnumerator } from "./Util.js";
|
|
2
|
-
import { Option } from "./Option.js";
|
|
3
|
-
import { int32 } from "./Int32.js";
|
|
4
|
-
import { FSharpRef } from "./Types.js";
|
|
5
|
-
import { TypeInfo } from "./Reflection.js";
|
|
6
|
-
export declare class Dictionary<Key, Value> implements IMap<Key, Value>, Iterable<[Key, Value]>, Iterable<[Key, Value]> {
|
|
7
|
-
readonly comparer: IEqualityComparer<Key>;
|
|
8
|
-
readonly hashMap: IMap<int32, [Key, Value][]>;
|
|
9
|
-
"init@9": int32;
|
|
10
|
-
constructor(pairs: Iterable<[Key, Value]>, comparer: IEqualityComparer<Key>);
|
|
11
|
-
get [Symbol.toStringTag](): string;
|
|
12
|
-
toJSON(): any;
|
|
13
|
-
"System.Collections.IEnumerable.GetEnumerator"(): IEnumerator<any>;
|
|
14
|
-
GetEnumerator(): IEnumerator<[Key, Value]>;
|
|
15
|
-
[Symbol.iterator](): Iterator<[Key, Value]>;
|
|
16
|
-
"System.Collections.Generic.ICollection`1.Add2B595"(item: [Key, Value]): void;
|
|
17
|
-
"System.Collections.Generic.ICollection`1.Clear"(): void;
|
|
18
|
-
"System.Collections.Generic.ICollection`1.Contains2B595"(item: [Key, Value]): boolean;
|
|
19
|
-
"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(array: [Key, Value][], arrayIndex: int32): void;
|
|
20
|
-
"System.Collections.Generic.ICollection`1.get_Count"(): int32;
|
|
21
|
-
"System.Collections.Generic.ICollection`1.get_IsReadOnly"(): boolean;
|
|
22
|
-
"System.Collections.Generic.ICollection`1.Remove2B595"(item: [Key, Value]): boolean;
|
|
23
|
-
"System.Collections.Generic.IDictionary`2.Add5BDDA1"(key: Key, value: Value): void;
|
|
24
|
-
"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(key: Key): boolean;
|
|
25
|
-
"System.Collections.Generic.IDictionary`2.get_Item2B595"(key: Key): Value;
|
|
26
|
-
"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(key: Key, v: Value): void;
|
|
27
|
-
"System.Collections.Generic.IDictionary`2.get_Keys"(): Iterable<Key>;
|
|
28
|
-
"System.Collections.Generic.IDictionary`2.Remove2B595"(key: Key): boolean;
|
|
29
|
-
"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(key: Key, value: FSharpRef<Value>): boolean;
|
|
30
|
-
"System.Collections.Generic.IDictionary`2.get_Values"(): Iterable<Value>;
|
|
31
|
-
get size(): int32;
|
|
32
|
-
clear(): void;
|
|
33
|
-
delete(k: Key): boolean;
|
|
34
|
-
entries(): Iterable<[Key, Value]>;
|
|
35
|
-
get(k: Key): Value;
|
|
36
|
-
has(k: Key): boolean;
|
|
37
|
-
keys(): Iterable<Key>;
|
|
38
|
-
set(k: Key, v: Value): IMap<Key, Value>;
|
|
39
|
-
values(): Iterable<Value>;
|
|
40
|
-
forEach(f: ((arg0: Value, arg1: Key, arg2: IMap<Key, Value>) => void), thisArg?: Option<any>): void;
|
|
41
|
-
}
|
|
42
|
-
export declare function Dictionary_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo;
|
|
43
|
-
export declare function Dictionary_$ctor_6623D9B3<Key, Value>(pairs: Iterable<[Key, Value]>, comparer: IEqualityComparer<Key>): Dictionary<Key, Value>;
|
|
44
|
-
export declare function Dictionary__TryFind_2B595<Key, Value>(this$: Dictionary<Key, Value>, k: Key): Option<[Key, Value]>;
|
|
45
|
-
export declare function Dictionary__get_Comparer<Key, Value>(this$: Dictionary<Key, Value>): IEqualityComparer<Key>;
|
|
46
|
-
export declare function Dictionary__Clear<Key, Value>(this$: Dictionary<Key, Value>): void;
|
|
47
|
-
export declare function Dictionary__get_Count<Key, Value>(this$: Dictionary<Key, Value>): int32;
|
|
48
|
-
export declare function Dictionary__get_Item_2B595<Key, Value>(this$: Dictionary<Key, Value>, k: Key): Value;
|
|
49
|
-
export declare function Dictionary__set_Item_5BDDA1<Key, Value>(this$: Dictionary<Key, Value>, k: Key, v: Value): void;
|
|
50
|
-
export declare function Dictionary__Add_5BDDA1<Key, Value>(this$: Dictionary<Key, Value>, k: Key, v: Value): void;
|
|
51
|
-
export declare function Dictionary__ContainsKey_2B595<Key, Value>(this$: Dictionary<Key, Value>, k: Key): boolean;
|
|
52
|
-
export declare function Dictionary__Remove_2B595<Key, Value>(this$: Dictionary<Key, Value>, k: Key): boolean;
|
package/MutableSet.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { IMap, IEqualityComparer, ISet, IEnumerator } from "./Util.js";
|
|
2
|
-
import { int32 } from "./Int32.js";
|
|
3
|
-
import { Option } from "./Option.js";
|
|
4
|
-
import { TypeInfo } from "./Reflection.js";
|
|
5
|
-
export declare class HashSet<T> implements ISet<T>, Iterable<T>, Iterable<T> {
|
|
6
|
-
readonly comparer: IEqualityComparer<T>;
|
|
7
|
-
readonly hashMap: IMap<int32, T[]>;
|
|
8
|
-
"init@9": int32;
|
|
9
|
-
constructor(items: Iterable<T>, comparer: IEqualityComparer<T>);
|
|
10
|
-
get [Symbol.toStringTag](): string;
|
|
11
|
-
toJSON(): any;
|
|
12
|
-
"System.Collections.IEnumerable.GetEnumerator"(): IEnumerator<any>;
|
|
13
|
-
GetEnumerator(): IEnumerator<T>;
|
|
14
|
-
[Symbol.iterator](): Iterator<T>;
|
|
15
|
-
"System.Collections.Generic.ICollection`1.Add2B595"(item: T): void;
|
|
16
|
-
"System.Collections.Generic.ICollection`1.Clear"(): void;
|
|
17
|
-
"System.Collections.Generic.ICollection`1.Contains2B595"(item: T): boolean;
|
|
18
|
-
"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(array: T[], arrayIndex: int32): void;
|
|
19
|
-
"System.Collections.Generic.ICollection`1.get_Count"(): int32;
|
|
20
|
-
"System.Collections.Generic.ICollection`1.get_IsReadOnly"(): boolean;
|
|
21
|
-
"System.Collections.Generic.ICollection`1.Remove2B595"(item: T): boolean;
|
|
22
|
-
get size(): int32;
|
|
23
|
-
add(k: T): ISet<T>;
|
|
24
|
-
clear(): void;
|
|
25
|
-
delete(k: T): boolean;
|
|
26
|
-
has(k: T): boolean;
|
|
27
|
-
keys(): Iterable<T>;
|
|
28
|
-
values(): Iterable<T>;
|
|
29
|
-
entries(): Iterable<[T, T]>;
|
|
30
|
-
forEach(f: ((arg0: T, arg1: T, arg2: ISet<T>) => void), thisArg?: Option<any>): void;
|
|
31
|
-
}
|
|
32
|
-
export declare function HashSet_$reflection(gen0: TypeInfo): TypeInfo;
|
|
33
|
-
export declare function HashSet_$ctor_Z6150332D<T>(items: Iterable<T>, comparer: IEqualityComparer<T>): HashSet<T>;
|
|
34
|
-
export declare function HashSet__get_Comparer<T>(this$: HashSet<T>): IEqualityComparer<T>;
|
|
35
|
-
export declare function HashSet__Clear<T>(this$: HashSet<T>): void;
|
|
36
|
-
export declare function HashSet__get_Count<T>(this$: HashSet<T>): int32;
|
|
37
|
-
export declare function HashSet__Add_2B595<T>(this$: HashSet<T>, k: T): boolean;
|
|
38
|
-
export declare function HashSet__Contains_2B595<T>(this$: HashSet<T>, k: T): boolean;
|
|
39
|
-
export declare function HashSet__Remove_2B595<T>(this$: HashSet<T>, k: T): boolean;
|
package/Native.d.ts
DELETED
package/Numeric.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { IComparable } from "./Util.js";
|
|
2
|
-
export declare const symbol: unique symbol;
|
|
3
|
-
export interface CustomNumeric extends IComparable<Numeric> {
|
|
4
|
-
[symbol](): {
|
|
5
|
-
multiply(y: Numeric): Numeric;
|
|
6
|
-
toPrecision(sd?: number): string;
|
|
7
|
-
toExponential(dp?: number): string;
|
|
8
|
-
toFixed(dp?: number): string;
|
|
9
|
-
toHex(): string;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export type Numeric = number | bigint | CustomNumeric;
|
|
13
|
-
export declare function isNumeric(x: any): any;
|
|
14
|
-
export declare function isIntegral(x: Numeric): boolean;
|
|
15
|
-
export declare function compare(x: Numeric, y: number): number;
|
|
16
|
-
export declare function multiply(x: Numeric, y: number): Numeric;
|
|
17
|
-
export declare function toFixed(x: Numeric, dp?: number): string;
|
|
18
|
-
export declare function toPrecision(x: Numeric, sd?: number): string;
|
|
19
|
-
export declare function toExponential(x: Numeric, dp?: number): string | bigint;
|
|
20
|
-
export declare function toHex(x: Numeric): string;
|
package/Observable.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { FSharpChoice$2_$union } from "./Choice.js";
|
|
2
|
-
import { Option } from "./Option.js";
|
|
3
|
-
import { IDisposable } from "./Util.js";
|
|
4
|
-
export interface IObserver<T> {
|
|
5
|
-
OnNext: (x: T) => void;
|
|
6
|
-
OnError: (e: any) => void;
|
|
7
|
-
OnCompleted: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare class Observer<T> implements IObserver<T> {
|
|
10
|
-
OnNext: (x: T) => void;
|
|
11
|
-
OnError: (e: any) => void;
|
|
12
|
-
OnCompleted: () => void;
|
|
13
|
-
constructor(onNext: (x: T) => void, onError?: (e: any) => void, onCompleted?: () => void);
|
|
14
|
-
}
|
|
15
|
-
export interface IObservable<T> {
|
|
16
|
-
Subscribe: (o: IObserver<T>) => IDisposable;
|
|
17
|
-
}
|
|
18
|
-
declare class Observable<T> implements IObservable<T> {
|
|
19
|
-
Subscribe: (o: IObserver<T>) => IDisposable;
|
|
20
|
-
constructor(subscribe: (o: IObserver<T>) => IDisposable);
|
|
21
|
-
}
|
|
22
|
-
export declare function add<T>(callback: (x: T) => void, source: IObservable<T>): void;
|
|
23
|
-
export declare function choose<T, U>(chooser: (x: T) => Option<U>, source: IObservable<T>): Observable<U>;
|
|
24
|
-
export declare function filter<T>(predicate: (x: T) => boolean, source: IObservable<T>): IObservable<T>;
|
|
25
|
-
export declare function map<T, U>(mapping: (x: T) => U, source: IObservable<T>): IObservable<U>;
|
|
26
|
-
export declare function merge<T>(source1: IObservable<T>, source2: IObservable<T>): IObservable<T>;
|
|
27
|
-
export declare function pairwise<T>(source: IObservable<T>): IObservable<[T, T]>;
|
|
28
|
-
export declare function partition<T>(predicate: (x: T) => boolean, source: IObservable<T>): [Observable<T>, Observable<T>];
|
|
29
|
-
export declare function scan<U, T>(collector: (u: U, t: T) => U, state: U, source: IObservable<T>): IObservable<U>;
|
|
30
|
-
export declare function split<T, U1, U2>(splitter: (x: T) => FSharpChoice$2_$union<U1, U2>, source: IObservable<T>): [Observable<U1>, Observable<U2>];
|
|
31
|
-
export declare function subscribe<T>(callback: (x: T) => void, source: IObservable<T>): IDisposable;
|
|
32
|
-
export {};
|
package/Option.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export type Nullable<T> = T | null | undefined;
|
|
2
|
-
export type Option<T> = T | Some<T> | undefined;
|
|
3
|
-
export declare class Some<T> {
|
|
4
|
-
value: T;
|
|
5
|
-
constructor(value: T);
|
|
6
|
-
toJSON(): T;
|
|
7
|
-
toString(): string;
|
|
8
|
-
GetHashCode(): number;
|
|
9
|
-
Equals(other: Option<T>): boolean;
|
|
10
|
-
CompareTo(other: Option<T>): number;
|
|
11
|
-
}
|
|
12
|
-
export declare function value<T>(x: Option<T>): T;
|
|
13
|
-
export declare function unwrap<T>(opt: Option<T>): T | undefined;
|
|
14
|
-
export declare function some<T>(x: T): Option<T>;
|
|
15
|
-
export declare function ofNullable<T>(x: Nullable<T>): Option<T>;
|
|
16
|
-
export declare function toNullable<T>(x: Option<T>): Nullable<T>;
|
|
17
|
-
export declare function flatten<T>(x: Option<Option<T>>): T | Some<T> | undefined;
|
|
18
|
-
export declare function toArray<T>(opt: Option<T>): T[];
|
|
19
|
-
export declare function defaultArg<T>(opt: Option<T>, defaultValue: T): T;
|
|
20
|
-
export declare function defaultArgWith<T>(opt: Option<T>, defThunk: () => T): T;
|
|
21
|
-
export declare function orElse<T>(opt: Option<T>, ifNone: Option<T>): Option<T>;
|
|
22
|
-
export declare function orElseWith<T>(opt: Option<T>, ifNoneThunk: () => Option<T>): Option<T>;
|
|
23
|
-
export declare function filter<T>(predicate: (arg: T) => boolean, opt: Option<T>): Option<T>;
|
|
24
|
-
export declare function map<T, U>(mapping: (arg: T) => U, opt: Option<T>): Option<U>;
|
|
25
|
-
export declare function map2<T1, T2, U>(mapping: (arg1: T1, arg2: T2) => Option<U>, opt1: Option<T1>, opt2: Option<T2>): Option<U>;
|
|
26
|
-
export declare function map3<T1, T2, T3, U>(mapping: (arg1: T1, arg2: T2, arg3: T3) => Option<U>, opt1: Option<T1>, opt2: Option<T2>, opt3: Option<T3>): Option<U>;
|
|
27
|
-
export declare function bind<T, U>(binder: (arg: T) => Option<U>, opt: Option<T>): Option<U>;
|
|
28
|
-
export declare function tryOp<T, U>(op: (x: T) => U, arg: T): Option<U>;
|
package/Random.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { uint8, int32, float64 } from "./Int32.js";
|
|
2
|
-
import { TypeInfo } from "./Reflection.js";
|
|
3
|
-
export interface IRandom {
|
|
4
|
-
Next0(): int32;
|
|
5
|
-
Next1(maxValue: int32): int32;
|
|
6
|
-
Next2(minValue: int32, maxValue: int32): int32;
|
|
7
|
-
NextBytes(buffer: uint8[]): void;
|
|
8
|
-
NextDouble(): float64;
|
|
9
|
-
}
|
|
10
|
-
export declare class NonSeeded implements IRandom {
|
|
11
|
-
constructor();
|
|
12
|
-
Next0(): int32;
|
|
13
|
-
Next1(maxValue: int32): int32;
|
|
14
|
-
Next2(minValue: int32, maxValue: int32): int32;
|
|
15
|
-
NextDouble(): float64;
|
|
16
|
-
NextBytes(buffer: uint8[]): void;
|
|
17
|
-
}
|
|
18
|
-
export declare function NonSeeded_$reflection(): TypeInfo;
|
|
19
|
-
export declare function NonSeeded_$ctor(): NonSeeded;
|
|
20
|
-
export declare class Seeded implements IRandom {
|
|
21
|
-
readonly MBIG: int32;
|
|
22
|
-
inext: int32;
|
|
23
|
-
inextp: int32;
|
|
24
|
-
seedArray: int32[];
|
|
25
|
-
constructor(seed: int32);
|
|
26
|
-
Next0(): int32;
|
|
27
|
-
Next1(maxValue: int32): int32;
|
|
28
|
-
Next2(minValue: int32, maxValue: int32): int32;
|
|
29
|
-
NextDouble(): float64;
|
|
30
|
-
NextBytes(buffer: uint8[]): void;
|
|
31
|
-
}
|
|
32
|
-
export declare function Seeded_$reflection(): TypeInfo;
|
|
33
|
-
export declare function Seeded_$ctor_Z524259A4(seed: int32): Seeded;
|
|
34
|
-
export declare function Seeded__Sample(this$: Seeded): float64;
|
|
35
|
-
export declare function Seeded__GetSampleForLargeRange(this$: Seeded): float64;
|
|
36
|
-
export declare function nonSeeded(): NonSeeded;
|
|
37
|
-
export declare function seeded(seed: int32): Seeded;
|
package/Range.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { float64 } from "./Int32.js";
|
|
2
|
-
import { Option } from "./Option.js";
|
|
3
|
-
import { uint64, int64 } from "./BigInt.js";
|
|
4
|
-
import { decimal } from "./Decimal.js";
|
|
5
|
-
export declare function makeRangeStepFunction<T>(step: T, stop: T, zero: T, add: ((arg0: T, arg1: T) => T)): ((arg0: T) => Option<[T, T]>);
|
|
6
|
-
export declare function integralRangeStep<T>(start: T, step: T, stop: T, zero: T, add: ((arg0: T, arg1: T) => T)): Iterable<T>;
|
|
7
|
-
export declare function rangeBigInt(start: bigint, step: bigint, stop: bigint): Iterable<bigint>;
|
|
8
|
-
export declare function rangeDecimal(start: decimal, step: decimal, stop: decimal): Iterable<decimal>;
|
|
9
|
-
export declare function rangeDouble(start: float64, step: float64, stop: float64): Iterable<float64>;
|
|
10
|
-
export declare function rangeInt64(start: int64, step: int64, stop: int64): Iterable<int64>;
|
|
11
|
-
export declare function rangeUInt64(start: uint64, step: uint64, stop: uint64): Iterable<uint64>;
|
|
12
|
-
export declare function rangeChar(start: string, stop: string): Iterable<string>;
|
package/Reflection.d.ts
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { FSharpRef } from "./Types.js";
|
|
2
|
-
import { IEquatable } from "./Util.js";
|
|
3
|
-
export type FieldInfo = [string, TypeInfo];
|
|
4
|
-
export type PropertyInfo = FieldInfo;
|
|
5
|
-
export type ParameterInfo = FieldInfo;
|
|
6
|
-
export type Constructor = new (...args: any[]) => any;
|
|
7
|
-
export declare class CaseInfo {
|
|
8
|
-
declaringType: TypeInfo;
|
|
9
|
-
tag: number;
|
|
10
|
-
name: string;
|
|
11
|
-
fields?: FieldInfo[] | undefined;
|
|
12
|
-
constructor(declaringType: TypeInfo, tag: number, name: string, fields?: FieldInfo[] | undefined);
|
|
13
|
-
}
|
|
14
|
-
export type EnumCase = [string, number];
|
|
15
|
-
export declare class MethodInfo {
|
|
16
|
-
name: string;
|
|
17
|
-
parameters: ParameterInfo[];
|
|
18
|
-
returnType: TypeInfo;
|
|
19
|
-
constructor(name: string, parameters: ParameterInfo[], returnType: TypeInfo);
|
|
20
|
-
}
|
|
21
|
-
export declare class TypeInfo implements IEquatable<TypeInfo> {
|
|
22
|
-
fullname: string;
|
|
23
|
-
generics?: TypeInfo[] | undefined;
|
|
24
|
-
construct?: Constructor | undefined;
|
|
25
|
-
parent?: TypeInfo | undefined;
|
|
26
|
-
fields?: (() => FieldInfo[]) | undefined;
|
|
27
|
-
cases?: (() => CaseInfo[]) | undefined;
|
|
28
|
-
enumCases?: EnumCase[] | undefined;
|
|
29
|
-
constructor(fullname: string, generics?: TypeInfo[] | undefined, construct?: Constructor | undefined, parent?: TypeInfo | undefined, fields?: (() => FieldInfo[]) | undefined, cases?: (() => CaseInfo[]) | undefined, enumCases?: EnumCase[] | undefined);
|
|
30
|
-
toString(): string;
|
|
31
|
-
GetHashCode(): number;
|
|
32
|
-
Equals(other: TypeInfo): boolean;
|
|
33
|
-
}
|
|
34
|
-
export declare class GenericParameter extends TypeInfo {
|
|
35
|
-
constructor(name: string);
|
|
36
|
-
}
|
|
37
|
-
export declare function getGenerics(t: TypeInfo): TypeInfo[];
|
|
38
|
-
export declare function getHashCode(t: TypeInfo): number;
|
|
39
|
-
export declare function equals(t1: TypeInfo, t2: TypeInfo): boolean;
|
|
40
|
-
export declare function class_type(fullname: string, generics?: TypeInfo[], construct?: Constructor, parent?: TypeInfo): TypeInfo;
|
|
41
|
-
export declare function record_type(fullname: string, generics: TypeInfo[], construct: Constructor, fields: () => FieldInfo[]): TypeInfo;
|
|
42
|
-
export declare function anonRecord_type(...fields: FieldInfo[]): TypeInfo;
|
|
43
|
-
export declare function union_type(fullname: string, generics: TypeInfo[], construct: Constructor, cases: () => FieldInfo[][]): TypeInfo;
|
|
44
|
-
export declare function tuple_type(...generics: TypeInfo[]): TypeInfo;
|
|
45
|
-
export declare function delegate_type(...generics: TypeInfo[]): TypeInfo;
|
|
46
|
-
export declare function lambda_type(argType: TypeInfo, returnType: TypeInfo): TypeInfo;
|
|
47
|
-
export declare function option_type(generic: TypeInfo): TypeInfo;
|
|
48
|
-
export declare function list_type(generic: TypeInfo): TypeInfo;
|
|
49
|
-
export declare function array_type(generic: TypeInfo): TypeInfo;
|
|
50
|
-
export declare function enum_type(fullname: string, underlyingType: TypeInfo, enumCases: EnumCase[]): TypeInfo;
|
|
51
|
-
export declare function measure_type(fullname: string): TypeInfo;
|
|
52
|
-
export declare function generic_type(name: string): TypeInfo;
|
|
53
|
-
export declare const obj_type: TypeInfo;
|
|
54
|
-
export declare const unit_type: TypeInfo;
|
|
55
|
-
export declare const char_type: TypeInfo;
|
|
56
|
-
export declare const string_type: TypeInfo;
|
|
57
|
-
export declare const bool_type: TypeInfo;
|
|
58
|
-
export declare const int8_type: TypeInfo;
|
|
59
|
-
export declare const uint8_type: TypeInfo;
|
|
60
|
-
export declare const int16_type: TypeInfo;
|
|
61
|
-
export declare const uint16_type: TypeInfo;
|
|
62
|
-
export declare const int32_type: TypeInfo;
|
|
63
|
-
export declare const uint32_type: TypeInfo;
|
|
64
|
-
export declare const int64_type: TypeInfo;
|
|
65
|
-
export declare const uint64_type: TypeInfo;
|
|
66
|
-
export declare const int128_type: TypeInfo;
|
|
67
|
-
export declare const uint128_type: TypeInfo;
|
|
68
|
-
export declare const nativeint_type: TypeInfo;
|
|
69
|
-
export declare const unativeint_type: TypeInfo;
|
|
70
|
-
export declare const float16_type: TypeInfo;
|
|
71
|
-
export declare const float32_type: TypeInfo;
|
|
72
|
-
export declare const float64_type: TypeInfo;
|
|
73
|
-
export declare const decimal_type: TypeInfo;
|
|
74
|
-
export declare const bigint_type: TypeInfo;
|
|
75
|
-
export declare function name(info: FieldInfo | TypeInfo | CaseInfo | MethodInfo): string;
|
|
76
|
-
export declare function fullName(t: TypeInfo): string;
|
|
77
|
-
export declare function namespace(t: TypeInfo): string;
|
|
78
|
-
export declare function isArray(t: TypeInfo): boolean;
|
|
79
|
-
export declare function getElementType(t: TypeInfo): TypeInfo | undefined;
|
|
80
|
-
export declare function isGenericType(t: TypeInfo): boolean;
|
|
81
|
-
export declare function isGenericParameter(t: TypeInfo): t is GenericParameter;
|
|
82
|
-
export declare function isEnum(t: TypeInfo): boolean;
|
|
83
|
-
export declare function isSubclassOf(t1: TypeInfo, t2: TypeInfo): boolean;
|
|
84
|
-
export declare function isInstanceOfType(t: TypeInfo, o: any): boolean;
|
|
85
|
-
/**
|
|
86
|
-
* This doesn't replace types for fields (records) or cases (unions)
|
|
87
|
-
* but it should be enough for type comparison purposes
|
|
88
|
-
*/
|
|
89
|
-
export declare function getGenericTypeDefinition(t: TypeInfo): TypeInfo;
|
|
90
|
-
export declare function getEnumUnderlyingType(t: TypeInfo): TypeInfo | undefined;
|
|
91
|
-
export declare function getEnumValues(t: TypeInfo): number[];
|
|
92
|
-
export declare function getEnumNames(t: TypeInfo): string[];
|
|
93
|
-
export declare function parseEnum(t: TypeInfo, str: string): number;
|
|
94
|
-
export declare function tryParseEnum(t: TypeInfo, str: string, defValue: FSharpRef<number>): boolean;
|
|
95
|
-
export declare function getEnumName(t: TypeInfo, v: number): string;
|
|
96
|
-
export declare function isEnumDefined(t: TypeInfo, v: string | number): boolean;
|
|
97
|
-
export declare function getUnionCases(t: TypeInfo): CaseInfo[];
|
|
98
|
-
export declare function getRecordElements(t: TypeInfo): FieldInfo[];
|
|
99
|
-
export declare function getTupleElements(t: TypeInfo): TypeInfo[];
|
|
100
|
-
export declare function getFunctionElements(t: TypeInfo): [TypeInfo, TypeInfo];
|
|
101
|
-
export declare function isUnion(t: any): boolean;
|
|
102
|
-
export declare function isRecord(t: any): boolean;
|
|
103
|
-
export declare function isTuple(t: TypeInfo): boolean;
|
|
104
|
-
export declare function isFunction(t: TypeInfo): boolean;
|
|
105
|
-
export declare function getUnionFields(v: any, t: TypeInfo): [CaseInfo, any[]];
|
|
106
|
-
export declare function getUnionCaseFields(uci: CaseInfo): FieldInfo[];
|
|
107
|
-
export declare function getRecordFields(v: any): any[];
|
|
108
|
-
export declare function getRecordField(v: any, field: FieldInfo): any;
|
|
109
|
-
export declare function getTupleFields(v: any): any[];
|
|
110
|
-
export declare function getTupleField(v: any, i: number): any;
|
|
111
|
-
export declare function makeUnion(uci: CaseInfo, values: any[]): any;
|
|
112
|
-
export declare function makeRecord(t: TypeInfo, values: any[]): any;
|
|
113
|
-
export declare function makeTuple(values: any[], _t: TypeInfo): any;
|
|
114
|
-
export declare function makeGenericType(t: TypeInfo, generics: TypeInfo[]): TypeInfo;
|
|
115
|
-
export declare function createInstance(t: TypeInfo, consArgs?: any[]): any;
|
|
116
|
-
export declare function getValue(propertyInfo: PropertyInfo, v: any): any;
|
|
117
|
-
export declare function getCaseTag(x: any): number;
|
|
118
|
-
export declare function getCaseName(x: any): string;
|
|
119
|
-
export declare function getCaseFields(x: any): any[];
|
package/RegExp.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type MatchEvaluator = (match: any) => string;
|
|
2
|
-
export declare function create(pattern: string, options?: number): RegExp;
|
|
3
|
-
export declare function escape(str: string): string;
|
|
4
|
-
export declare function unescape(str: string): string;
|
|
5
|
-
export declare function isMatch(reg: RegExp, input: string, startAt?: number): boolean;
|
|
6
|
-
export declare function match(reg: RegExp, input: string, startAt?: number): RegExpExecArray | null;
|
|
7
|
-
export declare function matches(reg: RegExp, input: string, startAt?: number): RegExpExecArray[];
|
|
8
|
-
export declare function options(reg: RegExp): number;
|
|
9
|
-
export declare function replace(reg: string | RegExp, input: string, replacement: string | MatchEvaluator, limit?: number, offset?: number): string;
|
|
10
|
-
export declare function split(reg: string | RegExp, input: string, limit?: number, offset?: number): string[];
|
package/Result.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Union } from "./Types.js";
|
|
2
|
-
import { TypeInfo } from "./Reflection.js";
|
|
3
|
-
import { int32 } from "./Int32.js";
|
|
4
|
-
import { FSharpList } from "./List.js";
|
|
5
|
-
import { Option } from "./Option.js";
|
|
6
|
-
export type FSharpResult$2_$union<T, TError> = FSharpResult$2<T, TError, 0> | FSharpResult$2<T, TError, 1>;
|
|
7
|
-
export type FSharpResult$2_$cases<T, TError> = {
|
|
8
|
-
0: ["Ok", [T]];
|
|
9
|
-
1: ["Error", [TError]];
|
|
10
|
-
};
|
|
11
|
-
export declare function FSharpResult$2_Ok<T, TError>(ResultValue: T): FSharpResult$2<T, TError, 0>;
|
|
12
|
-
export declare function FSharpResult$2_Error$<T, TError>(ErrorValue: TError): FSharpResult$2<T, TError, 1>;
|
|
13
|
-
export declare class FSharpResult$2<T, TError, Tag extends keyof FSharpResult$2_$cases<T, TError>> extends Union<Tag, FSharpResult$2_$cases<T, TError>[Tag][0]> {
|
|
14
|
-
readonly tag: Tag;
|
|
15
|
-
readonly fields: FSharpResult$2_$cases<T, TError>[Tag][1];
|
|
16
|
-
constructor(tag: Tag, fields: FSharpResult$2_$cases<T, TError>[Tag][1]);
|
|
17
|
-
cases(): string[];
|
|
18
|
-
}
|
|
19
|
-
export declare function FSharpResult$2_$reflection(gen0: TypeInfo, gen1: TypeInfo): TypeInfo;
|
|
20
|
-
export declare function Result_Map<a, b, c>(mapping: ((arg0: a) => b), result: FSharpResult$2_$union<a, c>): FSharpResult$2_$union<b, c>;
|
|
21
|
-
export declare function Result_MapError<a, b, c>(mapping: ((arg0: a) => b), result: FSharpResult$2_$union<c, a>): FSharpResult$2_$union<c, b>;
|
|
22
|
-
export declare function Result_Bind<a, b, c>(binder: ((arg0: a) => FSharpResult$2_$union<b, c>), result: FSharpResult$2_$union<a, c>): FSharpResult$2_$union<b, c>;
|
|
23
|
-
export declare function Result_IsOk<a, b>(result: FSharpResult$2_$union<a, b>): boolean;
|
|
24
|
-
export declare function Result_IsError<a, b>(result: FSharpResult$2_$union<a, b>): boolean;
|
|
25
|
-
export declare function Result_Contains<a, b>(value: a, result: FSharpResult$2_$union<a, b>): boolean;
|
|
26
|
-
export declare function Result_Count<a, b>(result: FSharpResult$2_$union<a, b>): int32;
|
|
27
|
-
export declare function Result_DefaultValue<a, b>(defaultValue: a, result: FSharpResult$2_$union<a, b>): a;
|
|
28
|
-
export declare function Result_DefaultWith<b, a>(defThunk: ((arg0: b) => a), result: FSharpResult$2_$union<a, b>): a;
|
|
29
|
-
export declare function Result_Exists<a, b>(predicate: ((arg0: a) => boolean), result: FSharpResult$2_$union<a, b>): boolean;
|
|
30
|
-
export declare function Result_Fold<a, b, s>(folder: ((arg0: s, arg1: a) => s), state: s, result: FSharpResult$2_$union<a, b>): s;
|
|
31
|
-
export declare function Result_FoldBack<a, b, s>(folder: ((arg0: a, arg1: s) => s), result: FSharpResult$2_$union<a, b>, state: s): s;
|
|
32
|
-
export declare function Result_ForAll<a, b>(predicate: ((arg0: a) => boolean), result: FSharpResult$2_$union<a, b>): boolean;
|
|
33
|
-
export declare function Result_Iterate<a, b>(action: ((arg0: a) => void), result: FSharpResult$2_$union<a, b>): void;
|
|
34
|
-
export declare function Result_ToArray<a, b>(result: FSharpResult$2_$union<a, b>): a[];
|
|
35
|
-
export declare function Result_ToList<a, b>(result: FSharpResult$2_$union<a, b>): FSharpList<a>;
|
|
36
|
-
export declare function Result_ToOption<a, b>(result: FSharpResult$2_$union<a, b>): Option<a>;
|
|
37
|
-
export declare function Result_ToValueOption<a, b>(result: FSharpResult$2_$union<a, b>): Option<a>;
|