mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00

this enables the `noImplicitAny` flag in the Typescript compiler > When the noImplicitAny flag is true and the TypeScript compiler cannot infer the type, it still generates the JavaScript files, but it also reports an error. Many seasoned developers prefer this stricter setting because type checking catches more unintentional errors at compile time. closes: #1131 replaces #1137
18 lines
392 B
TypeScript
18 lines
392 B
TypeScript
import { Component, Input } from '@angular/core'
|
|
|
|
@Component({
|
|
selector: 'my-button',
|
|
styleUrls: ['./button.component.scss'],
|
|
templateUrl: './button.component.html'
|
|
})
|
|
|
|
export class ButtonComponent {
|
|
@Input() label = ''
|
|
@Input() className: any = undefined
|
|
@Input() icon: any = undefined
|
|
@Input() title: any = undefined
|
|
|
|
getTitle () {
|
|
return this.title || this.label
|
|
}
|
|
}
|