I am working with a StoryOptions
object that includes a property called actionFn
. This property, when invoked, will return a function utilizing function currying.
The actionFn
function must accept an object of type
ActionBundle</code and should return a function that takes a <code>Payload
as an argument and produces a ReduxAction
as a result.
How should I define the StoryOptions
interface in TypeScript?
I attempted the following:
interface StoryOptions {
baseName: string;
actionFn(actions: ActionBundle): ((payload: Payload): ReduxAction);
}
However, this resulted in the error:
'ReduxAction' only refers to a type, but is being used as a value here.ts(2693)