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,5 @@
import { Component, Element, Listen, Prop, State } from '@stencil/core';
import { Config } from '../../index';
import { Config, Mode } from '../../index';
import {
DisplayWhen, PLATFORM_CONFIGS, PlatformConfig, detectPlatforms, updateTestResults,
@ -11,17 +11,17 @@ import {
})
export class HideWhen implements DisplayWhen {
calculatedPlatforms: PlatformConfig[];
mode!: Mode;
calculatedPlatforms!: PlatformConfig[];
@Element() element: HTMLElement;
@Prop({ context: 'config' }) config: Config;
@Prop({ context: 'window' }) win: Window;
@Element() element!: HTMLElement;
@Prop({ context: 'config' }) config!: Config;
@Prop({ context: 'window' }) win!: Window;
@Prop() orientation: string;
@Prop() mediaQuery: string;
@Prop() size: string;
@Prop() mode: string;
@Prop() platform: string;
@Prop() orientation?: string;
@Prop() mediaQuery?: string;
@Prop() size?: string;
@Prop() platform?: string;
@Prop() or = false;
@State() passesTest = false;

View File

@ -12,11 +12,6 @@
string
#### mode
string
#### or
boolean
@ -44,11 +39,6 @@ string
string
#### mode
string
#### or
boolean