From 6984c4988a8e4bf9c3451b8de39efc286582278c Mon Sep 17 00:00:00 2001 From: Brian Fletcher Date: Mon, 20 Dec 2021 11:05:58 +0000 Subject: [PATCH] moves types and interfaces to specific types file Signed-off-by: Brian Fletcher --- .../integration/src/github/DefaultGithubCredentialsProvider.ts | 2 +- packages/integration/src/github/core.test.ts | 2 +- packages/integration/src/github/core.ts | 2 +- packages/integration/src/github/index.ts | 2 +- .../src/github/{GithubCredentialsProvider.ts => types.ts} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename packages/integration/src/github/{GithubCredentialsProvider.ts => types.ts} (100%) diff --git a/packages/integration/src/github/DefaultGithubCredentialsProvider.ts b/packages/integration/src/github/DefaultGithubCredentialsProvider.ts index 6d9944329c..259fcf71a8 100644 --- a/packages/integration/src/github/DefaultGithubCredentialsProvider.ts +++ b/packages/integration/src/github/DefaultGithubCredentialsProvider.ts @@ -23,7 +23,7 @@ import { GithubCredentials, GithubCredentialsProvider, GithubCredentialType, -} from './GithubCredentialsProvider'; +} from './types'; type InstallationData = { installationId: number; diff --git a/packages/integration/src/github/core.test.ts b/packages/integration/src/github/core.test.ts index 53733b40d0..c5d04f5b4f 100644 --- a/packages/integration/src/github/core.test.ts +++ b/packages/integration/src/github/core.test.ts @@ -16,7 +16,7 @@ import { GitHubIntegrationConfig } from './config'; import { getGitHubFileFetchUrl, getGitHubRequestOptions } from './core'; -import { GithubCredentials } from './GithubCredentialsProvider'; +import { GithubCredentials } from './types'; describe('github core', () => { const appCredentials: GithubCredentials = { diff --git a/packages/integration/src/github/core.ts b/packages/integration/src/github/core.ts index 76e54fd544..5b630d5182 100644 --- a/packages/integration/src/github/core.ts +++ b/packages/integration/src/github/core.ts @@ -16,7 +16,7 @@ import parseGitUrl from 'git-url-parse'; import { GitHubIntegrationConfig } from './config'; -import { GithubCredentials } from './GithubCredentialsProvider'; +import { GithubCredentials } from './types'; /** * Given a URL pointing to a file on a provider, returns a URL that is suitable diff --git a/packages/integration/src/github/index.ts b/packages/integration/src/github/index.ts index 440691c436..142249b0a7 100644 --- a/packages/integration/src/github/index.ts +++ b/packages/integration/src/github/index.ts @@ -28,5 +28,5 @@ export type { GithubCredentials, GithubCredentialsProvider, GithubCredentialType, -} from './GithubCredentialsProvider'; +} from './types'; export { GitHubIntegration, replaceGitHubUrlType } from './GitHubIntegration'; diff --git a/packages/integration/src/github/GithubCredentialsProvider.ts b/packages/integration/src/github/types.ts similarity index 100% rename from packages/integration/src/github/GithubCredentialsProvider.ts rename to packages/integration/src/github/types.ts