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

@ -1,4 +1,4 @@
export class Hero {
export interface Hero {
id: number;
name: string;
}

View File

@ -4,7 +4,7 @@ import { protractor, browser, element, by, ElementFinder } from 'protractor';
const nameSuffix = 'X';
class Hero {
interface Hero {
id: number;
name: string;
}

View File

@ -1,4 +1,4 @@
export class Hero {
export interface Hero {
name: string;
}

View File

@ -1,6 +1,6 @@
// #docregion
export class Hero {
export interface Hero {
id: number;
name: string;
isSecret = false;
isSecret: boolean;
}

View File

@ -1,4 +1,4 @@
export class Hero {
export interface Hero {
id: number;
name: string;
}

View File

@ -1,6 +1,6 @@
// #docregion
export class Hero {
export interface Hero {
id: number;
name: string;
tid: string; // tax id

View File

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

View File

@ -1,4 +1,4 @@
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;
emotion?: string;

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;
}

View File

@ -11,7 +11,7 @@ import { delay } from 'rxjs/operators';
////////// The App: Services and Components for the tests. //////////////
export class Hero {
export interface Hero {
name: string;
}

View File

@ -1,4 +1,4 @@
export class Hero {
export interface Hero {
id: number;
name: string;
}

View File

@ -1,4 +1,4 @@
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,4 +1,4 @@
export class Hero {
export interface Hero {
id: number;
name: string;
}

View File

@ -1,4 +1,4 @@
export class Hero {
export interface Hero {
id: number;
name: string;
}

View File

@ -1,4 +1,4 @@
export class Hero {
export interface Hero {
id: number;
name: string;
}

View File

@ -1,4 +1,4 @@
export class Hero {
export interface Hero {
id: number;
name: string;
}