Reputation: 11599
The following code is taken from the ngrx example. The intellisense for the method store.select
has a long signature with two arrows. What does this method signature mean?
The type definition file shows this signature:
export interface SelectSignature<T> {
<R>(...paths: string[]): Observable<R>;
<R>(mapFn: (state: T) => R): Observable<R>;
}
Upvotes: 0
Views: 80
Reputation: 84734
It means that it can either be:
Upvotes: 1