Skip to content

fix(Entity): Change type for EntityState to interface#454

Merged
MikeRyanDev merged 2 commits into
masterfrom
fix-entity-state
Oct 10, 2017
Merged

fix(Entity): Change type for EntityState to interface#454
MikeRyanDev merged 2 commits into
masterfrom
fix-entity-state

Conversation

@brandonroberts

Copy link
Copy Markdown
Member

closes #458

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 91.413% when pulling 1118753 on fix-entity-state into 46d6f2f on master.

export interface EntityStateStr<T> {
ids: string[];
export interface EntityState<T> {
ids: any[];

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the possible values of ids are either string or number, it better to be explicit about that ids: string[] | number[];.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work with TypeScript

@MikeRyanDev MikeRyanDev merged commit d5640ec into master Oct 10, 2017
@MikeRyanDev MikeRyanDev deleted the fix-entity-state branch October 10, 2017 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants