@bigtest/effection
Advanced tools
Comparing version 0.6.0-026d8cf0 to 0.6.0-06e7c24b
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createDuplexChannel = exports.readyResource = exports.ensure = exports.any = exports.subscribe = exports.Mailbox = exports.Deferred = void 0; | ||
var deferred_1 = require("./deferred"); | ||
@@ -4,0 +5,0 @@ Object.defineProperty(exports, "Deferred", { enumerable: true, get: function () { return deferred_1.Deferred; } }); |
/// <reference types="node" /> | ||
import { Operation } from 'effection'; | ||
import { Operation, Context } from 'effection'; | ||
import { EventEmitter } from 'events'; | ||
@@ -18,3 +18,3 @@ export { any } from './pattern'; | ||
receive(pattern?: unknown): Operation<T>; | ||
pipe(other: Mailbox<T>): Generator<Operation<unknown>, any, unknown>; | ||
pipe(other: Mailbox<T>): Operation<Context<void>>; | ||
map<R>(fn: (from: T) => R): Operation<Mailbox<R>>; | ||
@@ -21,0 +21,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.subscribe = exports.Mailbox = void 0; | ||
exports.subscribe = exports.Mailbox = exports.any = void 0; | ||
const effection_1 = require("effection"); | ||
@@ -5,0 +5,0 @@ const events_1 = require("events"); |
export declare function compile(pattern: unknown): (target: unknown) => boolean; | ||
export declare function any(type: unknown): ((value: unknown) => boolean) | (() => boolean); | ||
export declare function any(type: unknown): (value: unknown) => boolean; | ||
//# sourceMappingURL=pattern.d.ts.map |
{ | ||
"name": "@bigtest/effection", | ||
"version": "0.6.0-026d8cf0", | ||
"version": "0.6.0-06e7c24b", | ||
"description": "Collection of handly utilities for working with effection. May find a different home later", | ||
@@ -22,4 +22,5 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@frontside/eslint-config": "^1.1.2", | ||
"@frontside/typescript": "^1.1.0", | ||
"@frontside/eslint-config": "^2.0.0", | ||
"@frontside/tsconfig": "^1.2.0", | ||
"@frontside/typescript": "^1.1.1", | ||
"@types/mocha": "^7.0.1", | ||
@@ -29,4 +30,3 @@ "@types/node": "^13.13.4", | ||
"mocha": "^6.2.2", | ||
"ts-node": "*", | ||
"typescript": "3.9.7" | ||
"ts-node": "^9.1.1" | ||
}, | ||
@@ -33,0 +33,0 @@ "dependencies": { |
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
22939
254