Skip to content

Commit

Permalink
fix(data): add TSDoc annotations (#3483)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Jul 12, 2022
1 parent 446eef3 commit cbbc49f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions modules/data/src/dispatchers/entity-dispatcher-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ export class EntityDispatcherFactory implements OnDestroy {
/**
* Function that returns the primary key for an entity `T`.
* Usually acquired from `EntityDefinition` metadata.
* @param {IdSelector<T>} selectId
*/
selectId: IdSelector<T> = defaultSelectId,
/** Defaults for options that influence dispatcher behavior such as whether
* `add()` is optimistic or pessimistic;
* @param {Partial<EntityDispatcherDefaultOptions>} defaultOptions
*/
defaultOptions: Partial<EntityDispatcherDefaultOptions> = {}
): EntityDispatcher<T> {
Expand Down
4 changes: 2 additions & 2 deletions modules/data/src/selectors/entity-selectors$.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ export class EntitySelectors$Factory {
selectors$[name$] = this.store.select((<any>selectors)[name]);
}
});
selectors$.entityActions$ = this.actions.pipe(ofEntityType(entityName));
selectors$.errors$ = this.entityActionErrors$.pipe(
selectors$['entityActions$'] = this.actions.pipe(ofEntityType(entityName));
selectors$['errors$'] = this.entityActionErrors$.pipe(
ofEntityType(entityName)
);
return selectors$ as S$;
Expand Down

0 comments on commit cbbc49f

Please sign in to comment.