Skip to content

Commit 540ec9e

Browse files
declared Grouping as global
1 parent 2ed1ba4 commit 540ec9e

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "enumerable-ts",
3-
"version": "0.0.4-beta",
3+
"version": "0.0.5-beta",
44
"description": "A port of System.Linq.Enumerable from the .NET framework to TypeScript",
55
"directories": {
66
"doc": "docs",

src/index.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,17 @@ import {
1313
IOrderedGrouping
1414
} from './enumerable'
1515

16-
Object.defineProperty(global, 'Enumerable', {
17-
configurable: true,
18-
writable: true,
19-
value: Enumerable
16+
Object.defineProperties(global, {
17+
Enumerable: {
18+
configurable: true,
19+
writable: true,
20+
value: Enumerable
21+
},
22+
Grouping: {
23+
configurable: true,
24+
writable: true,
25+
value: Grouping
26+
}
2027
})
2128

2229
const TypedArray: TypedArrayConstructor = Object.getPrototypeOf(Uint8Array)
@@ -48,6 +55,7 @@ export {
4855

4956
declare global {
5057
const Enumerable: EnumerableConstructor
58+
const Grouping: GroupingConstructor
5159

5260
interface Array<T> extends IEnumerable<T> { }
5361
interface Map<K, V> extends IEnumerable<[K, V]> { }

0 commit comments

Comments
 (0)