From ab7df78d8e8f0ce6fe734cd9ce6159d5e5ea11fa Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 18 Feb 2019 17:01:47 +0000 Subject: Made a simple constructor --- Website/scripts/main.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Website') diff --git a/Website/scripts/main.ts b/Website/scripts/main.ts index 77a80d3..10b4b40 100644 --- a/Website/scripts/main.ts +++ b/Website/scripts/main.ts @@ -1,8 +1,11 @@ -var root = document.getElementsByClassName('app'); - class Article { Title: HTMLElement; Description: string; ArticleLink: string; Image: HTMLElement; -} \ No newline at end of file + + constructor(title: string, description: string, article_link: string, image_link: string) { + } +} + +let root = document.getElementById('root'); -- cgit v1.2.3-13-gbd6f