Skip to content
This repository was archived by the owner on Jan 10, 2018. It is now read-only.
This repository was archived by the owner on Jan 10, 2018. It is now read-only.

Allow Symbol as action name #415

Closed
Closed

Description

@govorov

Hi!
When I'm trying to use symbol as action name I receive a this error:
TS2678: Type 'symbol' is not comparable to type 'string'.

due to this interface definition:
https://github.com/ngrx/store/blob/master/src/dispatcher.ts#L4

export interface Action {
  type: string;
  payload?: any;
}

I think it's reasonable to allow action names to be Symbols, not only strings.
Thank you.

Activity

  1. govorov commented on May 30, 2017

    @govorov
    Author

    Hey, is anyone interested in this feature?)

  2. robwormald commented on Jul 19, 2017

    @robwormald
    Contributor

    hi @govorov - we're migrating over to https://github.com/ngrx/platform. Feel free to re-open this over there if it's still a feature you need. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions