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

@ -6,14 +6,14 @@ import { Component, Listen, Prop, State } from '@stencil/core';
})
export class MenuToggle {
@Prop({ context: 'document' }) doc: Document;
@Prop({ context: 'document' }) doc!: Document;
@State() visible = false;
/**
* Optional property that maps to a Menu's `menuId` prop. Can also be `left` or `right` for the menu side. This is used to find the correct menu to toggle
*/
@Prop() menu: string;
@Prop() menu?: string;
/**
* Automatically hides the content when the corresponding menu is not