mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-04 11:49:53 +02:00
Complete type Changeset with branches and parents
This commit is contained in:
8
scm-ui-components/packages/ui-types/src/Branch.js
Normal file
8
scm-ui-components/packages/ui-types/src/Branch.js
Normal file
@@ -0,0 +1,8 @@
|
||||
//@flow
|
||||
import type {Links} from "./hal";
|
||||
|
||||
export type Branch = {
|
||||
name: string,
|
||||
revision: string,
|
||||
_links: Links
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user