From c8935c41cb04eca60d2eec7bf619916648ceac8e Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 24 Aug 2019 20:39:00 +0800 Subject: [PATCH] [M] Move Grade interface to App.ts --- src/components/app/app.ts | 16 ++++++++++++++++ src/utils/json-utils.ts | 16 +--------------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/components/app/app.ts b/src/components/app/app.ts index 0640836..191ca45 100644 --- a/src/components/app/app.ts +++ b/src/components/app/app.ts @@ -3,6 +3,22 @@ import Login from '@/components/login/login'; import Navigation from '@/components/navigation/navigation'; import Overall from '@/pages/overall/overall'; +/** + * Objects of this interface represent assignment grades. + */ +export interface Grade +{ + type: string, + description: string, + date: string, + complete: string, + include: boolean, + display: boolean, + + scoreMax: number, + score: number +} + @Component({ components: {Login, Navigation, Overall}, }) diff --git a/src/utils/json-utils.ts b/src/utils/json-utils.ts index 532bfe3..f5ab995 100644 --- a/src/utils/json-utils.ts +++ b/src/utils/json-utils.ts @@ -1,18 +1,4 @@ -/** - * Objects of this interface represent assignment grades. - */ -interface Grade -{ - type: string, - description: string, - date: string, - complete: string, - include: boolean, - display: boolean, - - scoreMax: number, - score: number -} +import {Grade} from '@/components/app/app'; export default class JsonUtils {