mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(all): use ts strict mode
This commit is contained in:
@@ -32,6 +32,9 @@ export class PickerController {
|
||||
dismiss(data?: any, role?: any, pickerId = -1) {
|
||||
pickerId = pickerId >= 0 ? pickerId : getHighestId();
|
||||
const picker = pickers.get(pickerId);
|
||||
if (!picker) {
|
||||
return Promise.reject('picker does not exist');
|
||||
}
|
||||
return picker.dismiss(data, role);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user