Skip to content

Commit

Permalink
Tidy types
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Shirley <andrew.shirley@sainsburys.co.uk>
Signed-off-by: blam <ben@blam.sh>
  • Loading branch information
ashirley authored and benjdlambert committed Jul 14, 2021
1 parent dc05501 commit 76fcd5a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions plugins/jenkins-backend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/

export interface ScmDetails {
url?: String;
displayName?: String;
author?: String;
url?: string;
displayName?: string;
author?: string;
}

interface CommonBuild {
Expand Down
4 changes: 2 additions & 2 deletions plugins/jenkins/src/api/JenkinsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class JenkinsClient implements JenkinsApi {
async getProjects(
entity: EntityName,
filter: { branch?: string },
): Promise<any> {
): Promise<Project[]> {
const url = new URL(
`${await this.discoveryApi.getBaseUrl('jenkins')}/v1/entity/${
entity.namespace
Expand Down Expand Up @@ -157,7 +157,7 @@ export class JenkinsClient implements JenkinsApi {
entity: EntityName,
jobName: string,
buildNumber: string,
): Promise<any> {
): Promise<Build> {
const url = `${await this.discoveryApi.getBaseUrl('jenkins')}/v1/entity/${
entity.namespace
}/${entity.kind}/${entity.name}/job/${encodeURIComponent(
Expand Down

0 comments on commit 76fcd5a

Please sign in to comment.