reselect icon indicating copy to clipboard operation
reselect copied to clipboard

Investigate TS inference behavior when `state` is being read from current scope

Open markerikson opened this issue 3 years ago • 0 comments

Per https://github.com/elastic/kibana/pull/138818 :

export const hostStatusInfo: (state: Immutable<EndpointState>) => HostStatus = createSelector(
// This used to infer correctly with older Reselect versions?
- (state) => state.hostStatus,
+ (state: Immutable<EndpointState>) => state.hostStatus,

Curious why TS doesn't pick that up okay

markerikson avatar Sep 05 '22 16:09 markerikson