Skip to content

TypeScript error in auth.effects.ts: Type 'Observable<unknown>' is not assignable to type 'Observable<Action>' #119

@saschaszott

Description

@saschaszott

Bug Description

A TypeScript error occurs in auth.effects.ts during compilation:

TS2322: Type 'Observable<unknown> & CreateEffectMetadata' is not assignable to type 'Observable<Action>'.
Types of property 'subscribe' are incompatible.
Type '{ (observerOrNext?: Partial<Observer<unknown>> | ((value: unknown) => void)): Subscription; ... }' is not assignable to type '{ (observerOrNext?: Partial<Observer<Action>> | ((value: Action) => void)): Subscription; ... }'.
Types of parameters 'value' and 'value' are incompatible.
Property 'type' is missing in type '{}' but required in type 'Action'.

Problematic Code

public refreshTokenAndRedirectSuccess$: Observable<Action> = createEffect(() => this.actions$

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions