build(aio): lint examples
This commit is contained in:

committed by
Matias Niemelä

parent
eb56ab38dc
commit
55b8de9fdd
@ -1,7 +1,7 @@
|
||||
// #docregion
|
||||
import { Hero } from './hero';
|
||||
|
||||
export var HEROES: Hero[] = [
|
||||
export const HEROES: Hero[] = [
|
||||
{ id: 11, isSecret: false, name: 'Mr. Nice' },
|
||||
{ id: 12, isSecret: false, name: 'Narco' },
|
||||
{ id: 13, isSecret: false, name: 'Bombasto' },
|
||||
|
@ -117,7 +117,7 @@ class OldLogger {
|
||||
export class Provider6aComponent {
|
||||
log: string;
|
||||
constructor(newLogger: NewLogger, oldLogger: OldLogger) {
|
||||
if (newLogger === oldLogger){
|
||||
if (newLogger === oldLogger) {
|
||||
throw new Error('expected the two loggers to be different instances');
|
||||
}
|
||||
oldLogger.log('Hello OldLogger (but we want NewLogger)');
|
||||
@ -140,7 +140,7 @@ export class Provider6aComponent {
|
||||
export class Provider6bComponent {
|
||||
log: string;
|
||||
constructor(newLogger: NewLogger, oldLogger: OldLogger) {
|
||||
if (newLogger !== oldLogger){
|
||||
if (newLogger !== oldLogger) {
|
||||
throw new Error('expected the two loggers to be the same instance');
|
||||
}
|
||||
oldLogger.log('Hello from NewLogger (via aliased OldLogger)');
|
||||
|
Reference in New Issue
Block a user