refactor: adjust code to new TSLint rules

This commit is contained in:
Karl-Philipp Wulfert
2019-11-19 12:06:54 +01:00
parent 8a9ab5c041
commit edca51be10
3 changed files with 113 additions and 108 deletions

View File

@@ -13,6 +13,8 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
// tslint:disable:completed-docs
/**
* Scope of membership
*/
@@ -160,7 +162,7 @@ export interface Project {
public_jobs: boolean;
request_access_enabled: boolean;
shared_runners_enabled: boolean;
shared_with_groups: any[];
shared_with_groups: unknown[];
snippets_enabled: boolean;
ssh_url_to_repo: string;
star_count: number;
@@ -307,7 +309,7 @@ export interface MergeRequest extends ThingWithTimeStats {
export interface MergeRequestApproval {
approvals_left: number;
approvals_required: number;
approved_by: Array<{ user: User }>;
approved_by: Array<{ user: User; }>;
approver_groups: Group[];
approvers: User[];
created_at: string;
@@ -381,7 +383,7 @@ export interface Note {
new_path: string;
old_line: number | null;
old_path: string;
position_type: string,
position_type: string;
start_sha: string;
};
resolvable: boolean;