Complete type Changeset with branches and parents

This commit is contained in:
René Pfeuffer
2018-09-18 11:54:59 +02:00
parent 28064f1b08
commit fa2d323806
2 changed files with 21 additions and 6 deletions

View File

@@ -0,0 +1,8 @@
//@flow
import type {Links} from "./hal";
export type Branch = {
name: string,
revision: string,
_links: Links
}

View File

@@ -1,6 +1,8 @@
//@flow
import type { Links } from "./hal";
import type { Tag } from "./Tags";
import type {Links} from "./hal";
import type {Tag} from "./Tags";
import type {Branch} from "./Branch";
export type Changeset = {
id: string,
date: Date,
@@ -8,11 +10,16 @@ export type Changeset = {
name: string,
mail: string
},
description: string
description: string,
_links: Links,
_embedded: {
tags: Tag[]
branches: any, //todo: Add correct type
parents: any //todo: Add correct type
tags: Tag[],
branches: Branch[],
parents: ParentChangeset[]
};
}
export type ParentChangeset = {
id: string,
_links: Links
}