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:
parent
178e750f16
commit
39e066add1
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue