Linter errors fixed
This commit is contained in:
parent
2fb145d671
commit
8e8c9626b3
1 changed files with 8 additions and 8 deletions
16
libs/redmine-types/index.d.ts
vendored
16
libs/redmine-types/index.d.ts
vendored
|
|
@ -1,7 +1,7 @@
|
|||
/// <reference types="typescript" />
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-namespace-keyword
|
||||
export module RedmineTypes {
|
||||
|
||||
export type IdAndName = {
|
||||
id: number;
|
||||
name: string;
|
||||
|
|
@ -48,14 +48,15 @@ export module RedmineTypes {
|
|||
updated_on?: string;
|
||||
closed_on?: string;
|
||||
relations?: Record<string, any>[];
|
||||
}
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-namespace-keyword
|
||||
export module Unknown {
|
||||
export const num = -1;
|
||||
export const str = '';
|
||||
export const idAndName: IdAndName = {
|
||||
id: -1,
|
||||
name: str
|
||||
name: str,
|
||||
};
|
||||
export const unknownName = 'Unknown';
|
||||
export const subject = 'Unknown';
|
||||
|
|
@ -76,14 +77,14 @@ export module RedmineTypes {
|
|||
spent_hours: num,
|
||||
total_spent_hours: num,
|
||||
custom_fields: [],
|
||||
created_on: date
|
||||
created_on: date,
|
||||
};
|
||||
|
||||
export const user: User = {
|
||||
id: num,
|
||||
firstname: unknownName,
|
||||
lastname: unknownName,
|
||||
mail: str
|
||||
mail: str,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
@ -92,6 +93,5 @@ export module RedmineTypes {
|
|||
firstname: string;
|
||||
lastname: string;
|
||||
mail: string;
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue