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

Time:05-15

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.

  • Related