fix(all): strong typed events

This commit is contained in:
Manu Mtz.-Almeida
2018-04-23 17:26:10 +02:00
parent b8c87c453a
commit d5129df970
44 changed files with 434 additions and 607 deletions

View File

@ -1,4 +1,4 @@
import { BlurEvent, CheckboxInput, CheckedInputChangeEvent, FocusEvent, StyleEvent } from '../../utils/input-interfaces';
import { CheckboxInput, CheckedInputChangeEvent, StyleEvent } from '../../utils/input-interfaces';
import { Component, Element, Event, EventEmitter, Prop, State, Watch } from '@stencil/core';
import { CssClassMap, Mode } from '../../index';
import { deferEvent } from '../../utils/helpers';
@ -63,12 +63,12 @@ export class Checkbox implements CheckboxInput {
/**
* Emitted when the toggle has focus.
*/
@Event() ionFocus!: EventEmitter<FocusEvent>;
@Event() ionFocus!: EventEmitter<void>;
/**
* Emitted when the toggle loses focus.
*/
@Event() ionBlur!: EventEmitter<BlurEvent>;
@Event() ionBlur!: EventEmitter<void>;
/**
* Emitted when the styles change.