What does this mean in angular, what kind of type is this?

I would like to know what this type means:

type newtype = (state: EntityState<IEntities>) => IEntities[];

>Solution :

The EntityState<T> is an ngrx type, you could check here.

And type newtype = (state: EntityState<IEntities>) => IEntities[]; defines a function type that recieves a state parameter of type EntityState<IEntities> and returns an IEntities[] array.

Leave a Reply