docs: replace class hero to interface wherever class properties not used (#34022)

Fixes #21186

PR Close #34022
This commit is contained in:
ajitsinghkaler
2019-11-25 20:47:02 +05:30
committed by Matias Niemelä
parent 8c76e78ec4
commit 1217c6b7cc
27 changed files with 28 additions and 28 deletions

View File

@ -4,7 +4,7 @@ import { Component, NgModule, OnInit } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
class Hero {
interface Hero {
id: number;
name: string;
}

View File

@ -1,5 +1,5 @@
// #docregion
export class Hero {
export interface Hero {
id: number;
name: string;
}

View File

@ -1,6 +1,6 @@
// #docregion
// #docregion example
export class Hero {
export interface Hero {
name: string;
power: string;
}

View File

@ -1,6 +1,6 @@
// #docregion
// #docregion example
export class Hero {
export interface Hero {
name: string;
power: string;
}

View File

@ -1,5 +1,5 @@
// #docregion
export class Hero {
export interface Hero {
id: number;
name: string;
}

View File

@ -1,5 +1,5 @@
// #docregion
export class Hero {
export interface Hero {
id: number;
name: string;
}

View File

@ -1,5 +1,5 @@
// #docregion
export class Hero {
export interface Hero {
id: number;
name: string;
}

View File

@ -1,5 +1,5 @@
// #docregion
export class Hero {
export interface Hero {
id: number;
name: string;
}

View File

@ -1,5 +1,5 @@
// #docregion
export class Hero {
export interface Hero {
id: number;
name: string;
}

View File

@ -1,5 +1,5 @@
// #docregion
export class Hero {
export interface Hero {
id: number;
name: string;
}