Open
Description
current type definitions version
export type Action<
Type extends string = string,
Payload extends Object = undefined,
Meta extends Object = undefined
> =
| ErroneousAction<Type, Meta>
| (StandardAction<Type, Payload, Meta> & { error?: false });
error:
Argument of type 'ActionMeta<IReceiveContactPayload, IPersistMetadata>' is not assignable to parameter of type 'ArgumentAction<string, undefined, undefined>'.
Type 'ActionMeta<IReceiveContactPayload, IPersistMetadata>' is not assignable to type 'ActionBasis<string> & Partial<ActionBasis<string> & { payload: object; } & { meta: object; } & { error?: false; }>'.
Type 'ActionMeta<IReceiveContactPayload, IPersistMetadata>' is not assignable to type 'Partial<ActionBasis<string> & { payload: object; } & { meta: object; } & { error?: false; }>'.
Types of property 'error' are incompatible.
Type 'boolean' is not assignable to type 'false'.ts(2345)
i think it should be (StandardAction<Type, Payload, Meta> & { error?: boolean }); ?
Metadata
Metadata
Assignees
Labels
No labels