From 39e066add18c48af24db80ee00b775d73d926dab Mon Sep 17 00:00:00 2001 From: Ajit Singh Date: Wed, 6 May 2020 23:34:05 +0530 Subject: [PATCH] refactor(docs-infra): change class to interface where class properties not used (#36958) In resource.model.ts the interfaces of the resources were defined as classes, these do not use any class properties and are only used for type checking. So, changed them from class to interface. PR Close #36958 --- aio/src/app/custom-elements/resource/resource.model.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aio/src/app/custom-elements/resource/resource.model.ts b/aio/src/app/custom-elements/resource/resource.model.ts index 87c299a01e..b1d4a133fa 100644 --- a/aio/src/app/custom-elements/resource/resource.model.ts +++ b/aio/src/app/custom-elements/resource/resource.model.ts @@ -1,18 +1,18 @@ -export class Category { +export interface Category { id: string; // "education" title: string; // "Education" order: number; // 2 subCategories: SubCategory[]; } -export class SubCategory { +export interface SubCategory { id: string; // "books" title: string; // "Books" order: number; // 1 resources: Resource[]; } -export class Resource { +export interface Resource { category: string; // "Education" subCategory: string; // "Books" id: string; // "-KLI8vJ0ZkvWhqPembZ7"