Fix circular dependencies in ts files
Change-Id: Icb88c66ff2707f202ecf75f5d893cc81a2d10545
This commit is contained in:
@@ -26,6 +26,7 @@ import {
|
||||
NumericChangeId,
|
||||
ServerInfo,
|
||||
SuggestedReviewerInfo,
|
||||
Suggestion,
|
||||
} from '../../types/common';
|
||||
import {assertNever} from '../../utils/common-util';
|
||||
|
||||
@@ -37,8 +38,6 @@ export enum SUGGESTIONS_PROVIDERS_USERS_TYPES {
|
||||
ANY = 'any',
|
||||
}
|
||||
|
||||
export type Suggestion = SuggestedReviewerInfo | AccountInfo;
|
||||
|
||||
export function isAccountSuggestions(s: Suggestion): s is AccountInfo {
|
||||
return (s as AccountInfo)._account_id !== undefined;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,6 @@ import {
|
||||
DraftsAction,
|
||||
NotifyType,
|
||||
} from '../constants/constants';
|
||||
import {Suggestion} from '../scripts/gr-reviewer-suggestions-provider/gr-reviewer-suggestions-provider';
|
||||
|
||||
export type BrandType<T, BrandName extends string> = T &
|
||||
{[__brand in BrandName]: never};
|
||||
@@ -1831,6 +1830,8 @@ export type SuggestedReviewerInfo =
|
||||
| SuggestedReviewerAccountInfo
|
||||
| SuggestedReviewerGroupInfo;
|
||||
|
||||
export type Suggestion = SuggestedReviewerInfo | AccountInfo;
|
||||
|
||||
export function isReviewerAccountSuggestion(
|
||||
s: Suggestion
|
||||
): s is SuggestedReviewerAccountInfo {
|
||||
|
||||
Reference in New Issue
Block a user