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.