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
This commit is contained in:
Ajit Singh 2020-05-06 23:34:05 +05:30 committed by Alex Rickabaugh
parent 178e750f16
commit 39e066add1
1 changed files with 3 additions and 3 deletions

View File

@ -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"