I would like to know what this type means:
type newtype = (state: EntityState<IEntities>) => IEntities[];
CodePudding user response:
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.