Модель конфигурации статусов перемещена в namespace
This commit is contained in:
parent
a7284aa128
commit
17146f2f05
3 changed files with 13 additions and 8 deletions
|
|
@ -3,9 +3,9 @@ import { parse } from 'jsonc-parser';
|
|||
import { join } from 'path';
|
||||
import { readFileSync } from 'fs';
|
||||
|
||||
let redmineStatues: StatusesConfig;
|
||||
let redmineStatues: StatusesConfig.Config;
|
||||
|
||||
export default (): StatusesConfig => {
|
||||
export default (): StatusesConfig.Config => {
|
||||
if (redmineStatues) {
|
||||
return redmineStatues;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { StatusesConfig } from './statuses-config.model';
|
|||
|
||||
export type AppConfig = {
|
||||
redmineIssueEventEmitterConfig: MainConfigModel;
|
||||
redmineStatuses: StatusesConfig;
|
||||
redmineStatuses: StatusesConfig.Config;
|
||||
couchDb: {
|
||||
dbs: {
|
||||
changes: string;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
export type StatusesConfig = {
|
||||
/* eslint-disable @typescript-eslint/no-namespace */
|
||||
export namespace StatusesConfig {
|
||||
export type Item = {
|
||||
id: number;
|
||||
name: string;
|
||||
is_closed?: boolean;
|
||||
}[];
|
||||
};
|
||||
|
||||
export type Config = Item[];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue