@gitkraken/gitkraken-components 1.0.0-rc.20 → 1.0.0-rc.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -128,9 +128,9 @@ export type GraphRef = Head
128
128
 
129
129
  export type GraphRefGroup = Array<GraphRef>;
130
130
 
131
- export type RefMetadataById = { [id: string]: RefMetadata | null | undefined };
131
+ export type RefMetadataById = { [id: string]: RefMetadata | null | undefined } | null;
132
132
  export type RefMetadata = {
133
- pullRequests?: PullRequestMetadata[];
133
+ pullRequests?: PullRequestMetadata[] | null;
134
134
  };
135
135
 
136
136
  export type PullRequestMetadata = {
@@ -153,20 +153,20 @@ export const azureDevopsHostingServiceType = 'azureDevops';
153
153
  export const bitBucketHostingServiceType = 'bitbucket';
154
154
  export const bitBucketServerHostingServiceType = 'bitbucketServer';
155
155
  export type HostingServiceType =
156
- typeof GitHubDotComHostingServiceType |
157
- typeof GithubEnterpriseHostingServiceType |
158
- typeof BitBucketHostingServiceType |
159
- typeof BitBucketServerHostingServiceType |
160
- typeof GitLabHostingServiceType |
161
- typeof GitLabSelfHostingServiceType |
162
- typeof AzureDevopsHostingServiceType;
156
+ typeof gitHubDotComHostingServiceType |
157
+ typeof githubEnterpriseHostingServiceType |
158
+ typeof bitBucketHostingServiceType |
159
+ typeof bitBucketServerHostingServiceType |
160
+ typeof gitLabHostingServiceType |
161
+ typeof gitLabSelfHostingServiceType |
162
+ typeof azureDevopsHostingServiceType;
163
163
 
164
164
  export type RefsMissingMetadata = {
165
- [refId: string]: MissingRefMetadataType[]
165
+ [refId: string]: RefMetadataType[]
166
166
  }
167
- export const missingPullRequestMetadataType = 'pullRequests';
167
+ export const pullRequestMetadataType = 'pullRequests';
168
168
  // Expand this as we add more types to RefMetadata
169
- export type MissingRefMetadataType = typeof missingPullRequestMetadataType;
169
+ export type RefMetadataType = typeof pullRequestMetadataType;
170
170
 
171
171
  // Callbacks
172
172
  export type GetExternalIcon = (key: string) => React.ReactElement<any>;