UNPKG

clumsy-graphics

Version:

a tool for rapidly developing animations where frames are described using svg elements à la react 🙃

18 lines (17 loc) 3.14 kB
import { Buffer as ChannelBuffer, EventChannel, MulticastChannel, Task } from 'redux-saga'; import { SagaReturnType, Tail } from 'redux-saga/effects'; import { ActionBase, EventBase } from '../models/common'; import { AnimationDevelopmentAction } from '../models/AnimationDevelopmentAction'; import { AnimationDevelopmentState } from '../models/AnimationDevelopmentState'; export declare const call: <SomeFunction extends (...args: any[]) => any>(someFunction: SomeFunction, ...functionArgs: Parameters<SomeFunction>) => Generator<import("redux-saga/effects").CallEffect<SagaReturnType<SomeFunction>>, SagaReturnType<SomeFunction>, SagaReturnType<SomeFunction>>; export declare const fork: <SomeFunction extends (...args: any[]) => any>(someFunction: SomeFunction, ...functionArgs: Parameters<SomeFunction>) => Generator<import("redux-saga/effects").ForkEffect<SagaReturnType<SomeFunction>>, Task, Task>; export declare const spawn: <SomeFunction extends (...args: any[]) => any>(someFunction: SomeFunction, ...functionArgs: Parameters<SomeFunction>) => Generator<import("redux-saga/effects").ForkEffect<SagaReturnType<SomeFunction>>, Task, Task>; export declare const put: <SomeStoreAction extends AnimationDevelopmentAction>(someAction: SomeStoreAction) => Generator<import("redux-saga/effects").PutEffect<SomeStoreAction>, void, void>; export declare const select: <SomeFunction extends (state: AnimationDevelopmentState, ...args: any[]) => any>(storeSelector: SomeFunction, ...selectorArgs: Tail<Parameters<SomeFunction>>) => Generator<import("redux-saga/effects").SelectEffect, ReturnType<SomeFunction>, ReturnType<SomeFunction>>; export declare const takeAction: <TargetAction extends AnimationDevelopmentAction>(actionPattern: StoreActionPattern<AnimationDevelopmentAction, TargetAction>) => Generator<import("redux-saga/effects").TakeEffect, TargetAction, TargetAction>; export declare const takeActionFromChannel: <ChannelAction extends AnimationDevelopmentAction>(actionChannel: MulticastChannel<ChannelAction>) => Generator<import("redux-saga/effects").ChannelTakeEffect<ChannelAction>, ChannelAction, ChannelAction>; export declare const takeEvent: <SomeEvent extends EventBase<string, object>>(takeableChannel: EventChannel<SomeEvent>) => Generator<import("redux-saga/effects").ChannelTakeEffect<SomeEvent>, SomeEvent, SomeEvent>; export declare const actionChannel: <ChannelAction extends AnimationDevelopmentAction>(channelActionPattern: StoreActionPattern<AnimationDevelopmentAction, ChannelAction>, channelBuffer: ChannelBuffer<ChannelAction>) => Generator<import("redux-saga/effects").ActionChannelEffect, MulticastChannel<ChannelAction>, MulticastChannel<ChannelAction>>; declare type StoreActionPattern<StoreAction extends ActionBase<string, object>, TargetAction extends StoreAction> = TargetAction['type'] | GuardPredicate<StoreAction, TargetAction> | Array<TargetAction['type'] | GuardPredicate<StoreAction, TargetAction>>; declare type GuardPredicate<PredicateArgument, PredicateGuard extends PredicateArgument> = (somePredicateArgument: PredicateArgument) => somePredicateArgument is PredicateGuard; export {};