diff options
Diffstat (limited to 'src/pattern.ts')
-rw-r--r-- | src/pattern.ts | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/pattern.ts b/src/pattern.ts index cae35a9..d067bf4 100644 --- a/src/pattern.ts +++ b/src/pattern.ts @@ -1,8 +1,8 @@ -interface PatternFlat { - id: number | string; - isRegex: boolean; - value: string; - label: string; +export type PatternFlat = { + id: number | string, + isRegex: boolean, + value: string, + label: string } export class Pattern { @@ -33,16 +33,16 @@ export class Pattern { static inflate = (obj: PatternFlat) => new Pattern(obj.id, obj.isRegex, obj.value, obj.label); } -interface PatternEntryColor { +export type PatternEntryColor = { background: string } -interface PatternEntryFlat { - name: string; - idx: number; - cal: PatternFlat; - event: PatternFlat; - color: PatternEntryColor; +export type PatternEntryFlat = { + name: string, + idx: number, + cal: PatternFlat, + event: PatternFlat, + color: PatternEntryColor } export class PatternEntry { |