@rimbu/collection-types
Advanced tools
Comparing version 0.7.3 to 0.7.4
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./base"), exports); | ||
tslib_1.__exportStar(require("./set/base"), exports); | ||
tslib_1.__exportStar(require("./map/base"), exports); | ||
(0, tslib_1.__exportStar)(require("./base"), exports); | ||
(0, tslib_1.__exportStar)(require("./set/base"), exports); | ||
(0, tslib_1.__exportStar)(require("./map/base"), exports); | ||
//# sourceMappingURL=custom-base.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./internal"), exports); | ||
(0, tslib_1.__exportStar)(require("./internal"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -5,9 +5,9 @@ "use strict"; | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./set/variant"), exports); | ||
tslib_1.__exportStar(require("./set/generic"), exports); | ||
tslib_1.__exportStar(require("./map/variant"), exports); | ||
tslib_1.__exportStar(require("./map/base"), exports); | ||
tslib_1.__exportStar(require("./map/generic"), exports); | ||
exports.Edit = tslib_1.__importStar(require("./utils/edit")); | ||
exports.CustomBase = tslib_1.__importStar(require("./custom-base")); | ||
(0, tslib_1.__exportStar)(require("./set/variant"), exports); | ||
(0, tslib_1.__exportStar)(require("./set/generic"), exports); | ||
(0, tslib_1.__exportStar)(require("./map/variant"), exports); | ||
(0, tslib_1.__exportStar)(require("./map/base"), exports); | ||
(0, tslib_1.__exportStar)(require("./map/generic"), exports); | ||
exports.Edit = (0, tslib_1.__importStar)(require("./utils/edit")); | ||
exports.CustomBase = (0, tslib_1.__importStar)(require("./custom-base")); | ||
//# sourceMappingURL=internal.js.map |
@@ -96,3 +96,3 @@ "use strict"; | ||
return builder.buildMapValues(function (row, key) { | ||
return mergeFun.apply(void 0, tslib_1.__spreadArray([key], tslib_1.__read(row))); | ||
return mergeFun.apply(void 0, (0, tslib_1.__spreadArray)([key], (0, tslib_1.__read)(row), false)); | ||
}); | ||
@@ -105,3 +105,3 @@ }; | ||
} | ||
return this.mergeAllWith.apply(this, tslib_1.__spreadArray([fillValue, | ||
return this.mergeAllWith.apply(this, (0, tslib_1.__spreadArray)([fillValue, | ||
function (key) { | ||
@@ -113,3 +113,3 @@ var values = []; | ||
return values; | ||
}], tslib_1.__read(sources))); | ||
}], (0, tslib_1.__read)(sources), false)); | ||
}; | ||
@@ -168,3 +168,3 @@ ContextBase.prototype.mergeWith = function (mergeFun) { | ||
return builder.buildMapValues(function (row, key) { | ||
return mergeFun.apply(void 0, tslib_1.__spreadArray([key], tslib_1.__read(row))); | ||
return mergeFun.apply(void 0, (0, tslib_1.__spreadArray)([key], (0, tslib_1.__read)(row), false)); | ||
}); | ||
@@ -177,3 +177,3 @@ }; | ||
} | ||
return this.mergeWith.apply(this, tslib_1.__spreadArray([function (key) { | ||
return this.mergeWith.apply(this, (0, tslib_1.__spreadArray)([function (key) { | ||
var values = []; | ||
@@ -184,3 +184,3 @@ for (var _i = 1; _i < arguments.length; _i++) { | ||
return values; | ||
}], tslib_1.__read(sources))); | ||
}], (0, tslib_1.__read)(sources), false)); | ||
}; | ||
@@ -187,0 +187,0 @@ return ContextBase; |
@@ -20,5 +20,5 @@ "use strict"; | ||
var collect = function (source, collectFun) { | ||
return exports.asStream(source, function (stream) { return stream.collect(collectFun); }); | ||
return (0, exports.asStream)(source, function (stream) { return stream.collect(collectFun); }); | ||
}; | ||
exports.collect = collect; | ||
//# sourceMappingURL=edit.js.map |
{ | ||
"name": "@rimbu/collection-types", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "Type definitions for the basic generic Rimbu collections", | ||
@@ -55,6 +55,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@rimbu/base": "^0.6.5", | ||
"@rimbu/common": "^0.7.3", | ||
"@rimbu/stream": "^0.7.3", | ||
"tslib": "^2.3.0" | ||
"@rimbu/base": "^0.6.6", | ||
"@rimbu/common": "^0.7.4", | ||
"@rimbu/stream": "^0.7.4", | ||
"tslib": "^2.3.1" | ||
}, | ||
@@ -67,3 +67,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "f6fad673f48ce3d44d6b0f931c0182c8231526ca" | ||
"gitHead": "e509f9938fad6253702f6b78eb9f8e3b3a8f92ac" | ||
} |
@@ -15,6 +15,8 @@ <p align="center"> | ||
All types are exported through `@rimbu/core`. It is recommended to use this package. The types in this package are mostly abstract and have no actual implementation. | ||
All types are exported through `@rimbu/core`. It is recommended to use that package. The types in this package are mostly abstract and have no actual implementation. | ||
To install separately: | ||
To install this package only: | ||
### Yarn/NPM | ||
> `yarn add @rimbu/collection-types` | ||
@@ -26,4 +28,30 @@ | ||
### recommended tsconfig settings | ||
### Deno | ||
Create a file called `rimbu.ts` and add the following: | ||
> ```ts | ||
> export * from 'https://deno.land/x/rimbu/collection-types/mod.ts'; | ||
> ``` | ||
Or using a pinned version (`x.y.z`): | ||
> ```ts | ||
> export * from 'https://deno.land/x/rimbu/collection-types@x.y.z/mod.ts'; | ||
> ``` | ||
Then import what you need from `rimbu.ts`: | ||
```ts | ||
import { VariantMap } from './rimbu.ts'; | ||
``` | ||
Because Rimbu uses complex types, it's recommended to use the `--no-check` flag (your editor should already have checked your code) and to specify a `tsconfig.json` file with the settings described below. | ||
Running your script then becomes: | ||
> `deno run --no-check --config tsconfig.json <your-script>.ts` | ||
## Recommended `tsconfig.json` settings | ||
Rimbu uses advanced and recursive typing, potentially making the TypeScript compiler quite slow in some cases, or causing infinite recursion. It is recommended to set the following values in the `tsconfig.json` file of your project: | ||
@@ -30,0 +58,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
197495
85
Updated@rimbu/base@^0.6.6
Updated@rimbu/common@^0.7.4
Updated@rimbu/stream@^0.7.4
Updatedtslib@^2.3.1