docs(all): improve type docs for event

This commit is contained in:
Manu Mtz.-Almeida
2018-12-28 20:12:54 +01:00
committed by Manu MA
parent b3316d480f
commit 3d656ac312
74 changed files with 380 additions and 371 deletions

View File

@ -1,6 +1,6 @@
import { Component, ComponentInterface, Element, Event, EventEmitter, Prop, State, Watch } from '@stencil/core';
import { CheckedInputChangeEvent, Color, Mode, StyleEvent } from '../../interface';
import { CheckboxChangeEventDetail, Color, Mode, StyleEventDetail } from '../../interface';
import { findItemLabel, renderHiddenInput } from '../../utils/helpers';
import { createColorClasses, hostContext } from '../../utils/theme';
@ -59,7 +59,7 @@ export class Checkbox implements ComponentInterface {
/**
* Emitted when the checked property has changed.
*/
@Event() ionChange!: EventEmitter<CheckedInputChangeEvent>;
@Event() ionChange!: EventEmitter<CheckboxChangeEventDetail>;
/**
* Emitted when the toggle has focus.
@ -75,7 +75,7 @@ export class Checkbox implements ComponentInterface {
* Emitted when the styles change.
* @internal
*/
@Event() ionStyle!: EventEmitter<StyleEvent>;
@Event() ionStyle!: EventEmitter<StyleEventDetail>;
componentWillLoad() {
this.emitStyle();