feat(select): add optional generic typings (#21514)

resolves https://github.com/ionic-team/ionic-framework/issues/20220
This commit is contained in:
Simon Hänisch
2020-07-14 22:06:48 +02:00
committed by GitHub
parent 1351b2eafc
commit 7c2d0c981a
3 changed files with 9 additions and 9 deletions

View File

@ -2,6 +2,6 @@ export type SelectInterface = 'action-sheet' | 'popover' | 'alert';
export type SelectCompareFn = (currentValue: any, compareValue: any) => boolean;
export interface SelectChangeEventDetail {
value: any | any[] | undefined | null;
export interface SelectChangeEventDetail<T = any> {
value: T;
}