Skip to content

Commit

Permalink
remove typing of implied types
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianWhitneyAI committed May 8, 2024
1 parent 836add9 commit 14add36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/state/selection/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const getEncodedFileExplorerUrl = createSelector(

export const getGroupedByFilterName = createSelector(
[getFileFilters, getAnnotations],
(globalFilters: FileFilter[], annotations: Annotation[]) => {
(globalFilters, annotations) => {
const annotationNameToInstanceMap = keyBy(annotations, "name");
const filters = map(globalFilters, (filter: FileFilter) => {
const annotation = annotationNameToInstanceMap[filter.name];
Expand All @@ -81,7 +81,7 @@ export const getUnavailableAnnotationsForHierarchy = createSelector(
// COMPOSED SELECTORS
export const getSortedAnnotations = createSelector(
[getAnnotations, getRecentAnnotations],
(annotations: Annotation[], recentAnnotationNames: string[]) => {
(annotations, recentAnnotationNames) => {
// Create Array of annotations from recentAnnotationNames
const recentAnnotations = recentAnnotationNames.flatMap((name) =>
annotations.filter((annotation) => annotation.name === name)
Expand Down

0 comments on commit 14add36

Please sign in to comment.