@cycle/run
Advanced tools
Comparing version
import { CycleProgram, DisposeFunction, Drivers, MatchingDrivers, MatchingMain, Engine } from './types'; | ||
export { FantasyObserver, FantasySubscription, FantasyObservable, DevToolEnabledSource, Sources, Sinks, SinkProxies, Driver, Drivers, DisposeFunction, MatchingDrivers, MatchingMain, Main, CycleProgram, Engine, } from './types'; | ||
export { FantasyObserver, FantasySubscription, FantasyObservable, DevToolEnabledSource, Sources, Sinks, SinkProxies, Driver, Drivers, DisposeFunction, MatchingDrivers, MatchingMain, Main, CycleProgram, Engine } from './types'; | ||
/** | ||
@@ -4,0 +4,0 @@ * A function that prepares the Cycle application to be executed. Takes a `main` |
@@ -24,3 +24,3 @@ import { Stream } from 'xstream'; | ||
export declare type Drivers = { | ||
[name: string]: Driver<FantasyObservable | undefined | void | null, any>; | ||
[name: string]: Driver<Stream<any> | void, any | void>; | ||
}; | ||
@@ -31,5 +31,3 @@ export declare type Main = (...args: Array<any>) => any; | ||
}; | ||
export declare type Sinks<M extends Main> = { | ||
[k in (string & keyof ReturnType<M>)]: ReturnType<M>[k] & FantasyObservable; | ||
}; | ||
export declare type Sinks<M extends Main> = ReturnType<M>; | ||
export declare type MatchingMain<D extends Drivers, M extends Main> = Main & { | ||
@@ -39,3 +37,3 @@ (so?: Partial<Sources<D>>): Sinks<M>; | ||
export declare type MatchingDrivers<D extends Drivers, M extends Main> = Drivers & { | ||
[k in (string & keyof Sinks<M>)]: ((si?: Sinks<M>[k]) => Sources<D>[k]) | ((si: Sinks<M>[k]) => Sources<D>[k]); | ||
[k in string & keyof Sinks<M>]: ((si?: Sinks<M>[k]) => Sources<D>[k]) | ((si: Sinks<M>[k]) => Sources<D>[k]); | ||
}; | ||
@@ -42,0 +40,0 @@ export interface CycleProgram<D extends MatchingDrivers<D, M>, M extends MatchingMain<D, M>> { |
import { CycleProgram, DisposeFunction, Drivers, MatchingDrivers, MatchingMain, Engine } from './types'; | ||
export { FantasyObserver, FantasySubscription, FantasyObservable, DevToolEnabledSource, Sources, Sinks, SinkProxies, Driver, Drivers, DisposeFunction, MatchingDrivers, MatchingMain, Main, CycleProgram, Engine, } from './types'; | ||
export { FantasyObserver, FantasySubscription, FantasyObservable, DevToolEnabledSource, Sources, Sinks, SinkProxies, Driver, Drivers, DisposeFunction, MatchingDrivers, MatchingMain, Main, CycleProgram, Engine } from './types'; | ||
/** | ||
@@ -4,0 +4,0 @@ * A function that prepares the Cycle application to be executed. Takes a `main` |
@@ -24,3 +24,3 @@ import { Stream } from 'xstream'; | ||
export declare type Drivers = { | ||
[name: string]: Driver<FantasyObservable | undefined | void | null, any>; | ||
[name: string]: Driver<Stream<any> | void, any | void>; | ||
}; | ||
@@ -31,5 +31,3 @@ export declare type Main = (...args: Array<any>) => any; | ||
}; | ||
export declare type Sinks<M extends Main> = { | ||
[k in (string & keyof ReturnType<M>)]: ReturnType<M>[k] & FantasyObservable; | ||
}; | ||
export declare type Sinks<M extends Main> = ReturnType<M>; | ||
export declare type MatchingMain<D extends Drivers, M extends Main> = Main & { | ||
@@ -39,3 +37,3 @@ (so?: Partial<Sources<D>>): Sinks<M>; | ||
export declare type MatchingDrivers<D extends Drivers, M extends Main> = Drivers & { | ||
[k in (string & keyof Sinks<M>)]: ((si?: Sinks<M>[k]) => Sources<D>[k]) | ((si: Sinks<M>[k]) => Sources<D>[k]); | ||
[k in string & keyof Sinks<M>]: ((si?: Sinks<M>[k]) => Sources<D>[k]) | ((si: Sinks<M>[k]) => Sources<D>[k]); | ||
}; | ||
@@ -42,0 +40,0 @@ export interface CycleProgram<D extends MatchingDrivers<D, M>, M extends MatchingMain<D, M>> { |
{ | ||
"name": "@cycle/run", | ||
"version": "5.0.0", | ||
"version": "5.1.0-rc.0", | ||
"description": "The Cycle.js run() function to use with xstream", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -30,3 +30,3 @@ import {Stream} from 'xstream'; | ||
export type Drivers = { | ||
[name: string]: Driver<FantasyObservable | undefined | void | null, any>; | ||
[name: string]: Driver<Stream<any> | void, any | void>; | ||
}; | ||
@@ -38,5 +38,3 @@ | ||
export type Sinks<M extends Main> = { | ||
[k in (string & keyof ReturnType<M>)]: ReturnType<M>[k] & FantasyObservable | ||
}; | ||
export type Sinks<M extends Main> = ReturnType<M>; | ||
@@ -49,3 +47,3 @@ export type MatchingMain<D extends Drivers, M extends Main> = Main & { | ||
{ | ||
[k in (string & keyof Sinks<M>)]: | ||
[k in string & keyof Sinks<M>]: | ||
| ((si?: Sinks<M>[k]) => Sources<D>[k]) | ||
@@ -52,0 +50,0 @@ | ((si: Sinks<M>[k]) => Sources<D>[k]) |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
107935
3.65%46
15%2068
4.39%1
Infinity%