chore: Enforce type import consistency (#10968)

* Update types

* fix circular dep

* type imports

* lint type imports and --fix
This commit is contained in:
Tom Moor authored and GitHub committed 2025-12-19 23:07:02 -05:00
1 parent 419cf2a583
commit bf45e97641
883 files changed
+1998 -1826

No files matched your search

+5 -4
View File
@@ -1,11 +1,12 @@
import { Endpoints } from "@octokit/types";
import {
import type { Endpoints } from "@octokit/types";
import type {
InstallationNewPermissionsAcceptedEvent,
InstallationRepositoriesEvent,
RepositoryRenamedEvent,
} from "@octokit/webhooks-types";
import { IssueSource } from "@shared/schema";
import { IntegrationService, IntegrationType } from "@shared/types";
import type { IssueSource } from "@shared/schema";
import type { IntegrationType } from "@shared/types";
import { IntegrationService } from "@shared/types";
import Logger from "@server/logging/Logger";
import { Integration, IntegrationAuthentication } from "@server/models";
import { sequelize } from "@server/storage/database";
+1 -1
View File
@@ -8,7 +8,7 @@ import { transaction } from "@server/middlewares/transaction";
import validate from "@server/middlewares/validate";
import validateWebhook from "@server/middlewares/validateWebhook";
import { IntegrationAuthentication, Integration } from "@server/models";
import { APIContext } from "@server/types";
import type { APIContext } from "@server/types";
import { GitHubUtils } from "../../shared/GitHubUtils";
import env from "../env";
import { GitHub } from "../github";
+6 -8
View File
@@ -5,17 +5,15 @@ import {
type InstallationAuthOptions,
} from "@octokit/auth-app";
import { Sequelize } from "sequelize";
import { Endpoints, OctokitResponse } from "@octokit/types";
import type { Endpoints, OctokitResponse } from "@octokit/types";
import { Octokit } from "octokit";
import pluralize from "pluralize";
import {
IntegrationService,
IntegrationType,
UnfurlResourceType,
} from "@shared/types";
import type { IntegrationType } from "@shared/types";
import { IntegrationService, UnfurlResourceType } from "@shared/types";
import Logger from "@server/logging/Logger";
import { Integration, User } from "@server/models";
import { UnfurlIssueOrPR, UnfurlSignature } from "@server/types";
import type { User } from "@server/models";
import { Integration } from "@server/models";
import type { UnfurlIssueOrPR, UnfurlSignature } from "@server/types";
import { GitHubUtils } from "../shared/GitHubUtils";
import env from "./env";
+3 -2
View File
@@ -1,5 +1,6 @@
import { IntegrationService, IntegrationType } from "@shared/types";
import { Integration } from "@server/models";
import type { IntegrationType } from "@shared/types";
import { IntegrationService } from "@shared/types";
import type { Integration } from "@server/models";
import { GitHub } from "./github";
export async function uninstall(