mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
refactor(all): enable strictPropertyInitialization
This commit is contained in:
@ -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;
|
||||
|
@ -12,11 +12,6 @@
|
||||
string
|
||||
|
||||
|
||||
#### mode
|
||||
|
||||
string
|
||||
|
||||
|
||||
#### or
|
||||
|
||||
boolean
|
||||
@ -44,11 +39,6 @@ string
|
||||
string
|
||||
|
||||
|
||||
#### mode
|
||||
|
||||
string
|
||||
|
||||
|
||||
#### or
|
||||
|
||||
boolean
|
||||
|
Reference in New Issue
Block a user