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

@ -1,5 +1,6 @@
import { Component, Element, Listen, Method, Prop } from '@stencil/core';
import { Config, QueueController } from '../../index';
import { Config, Mode, QueueController } from '../../index';
@Component({
tag: 'ion-content',
@ -10,15 +11,15 @@ export class Content {
private cTop = -1;
private cBottom = -1;
private dirty = false;
private scrollEl: HTMLIonScrollElement;
private scrollEl?: HTMLIonScrollElement;
mode: string;
color: string;
mode!: Mode;
color!: string;
@Element() private el: HTMLElement;
@Element() el!: HTMLElement;
@Prop({ context: 'config' }) config: Config;
@Prop({ context: 'queue' }) queue: QueueController;
@Prop({ context: 'config' }) config!: Config;
@Prop({ context: 'queue' }) queue!: QueueController;
/**
* If true, the content will scroll behind the headers
@ -32,7 +33,7 @@ export class Content {
* If the content exceeds the bounds of ionContent, nothing will change.
* Note, the does not disable the system bounce on iOS. That is an OS level setting.
*/
@Prop() forceOverscroll: boolean;
@Prop() forceOverscroll?: boolean;
@Prop() scrollEnabled = true;