refactor(all): enable strictPropertyInitialization

This commit is contained in:
Manu Mtz.-Almeida
2018-04-19 18:48:38 +02:00
parent 78bd146ad2
commit 4ea8881f33
129 changed files with 1513 additions and 1664 deletions

View File

@ -30,7 +30,7 @@ export class Refresher {
private progress = 0;
private scrollEl: HTMLElement | null = null;
@Prop({ context: 'queue' }) queue: QueueController;
@Prop({ context: 'queue' }) queue!: QueueController;
/**
* The current state which the refresher is in. The refresher's states include:
@ -45,7 +45,7 @@ export class Refresher {
@State() state: RefresherState = RefresherState.Inactive;
@Element() el: HTMLElement;
@Element() el!: HTMLElement;
/**
* The minimum distance the user must pull down until the
@ -82,17 +82,17 @@ export class Refresher {
* Updates the refresher state to `refreshing`. The `complete()` method should be
* called when the async operation has completed.
*/
@Event() ionRefresh: EventEmitter;
@Event() ionRefresh!: EventEmitter;
/**
* Emitted while the user is pulling down the content and exposing the refresher.
*/
@Event() ionPull: EventEmitter;
@Event() ionPull!: EventEmitter;
/**
* Emitted when the user begins to start pulling down.
*/
@Event() ionStart: EventEmitter;
@Event() ionStart!: EventEmitter;
constructor() {
this.gestureConfig = {