message: Simplify `clean-issue-filters` cache format
diff: @@ -5,11 +5,10 @@ import features from '../libs/features';
  import * as api from '../libs/api';
  import {getOwnerAndRepo, getRepoURL, getRepoGQL} from '../libs/utils';
  -type Counts = {
  - repoProjectCount: number;
  - orgProjectCount: number;
  - milestoneCount: number;
  -};
  +interface Counts {
  + projects: number;
  + milestones: number;
  +}
  const getCounts = cache.function(async (): Promise<Counts> => {
  const {repository, organization} = await api.v4(`
  @@ -25,9 +24,10 @@ const getCounts = cache.function(async (): Promise<Counts> => {
  });
  return {
  - repoProjectCount: repository.projects.totalCount,
  - orgProjectCount: organization ? organization.projects.totalCount : 0,
  - milestoneCount: repository.milestones.totalCount
  + projects:
  + (repository.projects.totalCount as number) +
  + (organization?.projects?.totalCount as number ?? 0),
  + milestones: repository.milestones.totalCount
  };
  }, {
  expiration: 3,
  @@ -41,13 +41,13 @@ function removeParent(element?: Element): void {
  }
  async function init(): Promise<void> {
  - const {repoProjectCount, orgProjectCount, milestoneCount} = await getCounts();
  + const {projects, milestones} = await getCounts();
  - if (repoProjectCount === 0 && orgProjectCount === 0) {
  + if (projects === 0) {
  elementReady('[data-hotkey="p"]').then(removeParent);
  }
  - if (milestoneCount === 0) {
  + if (milestones === 0) {
  elementReady('[data-hotkey="m"]').then(removeParent);
  }
  }
  