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 ActionSheetController {
|
||||
dismiss(data?: any, role?: any, actionSheetId = -1) {
|
||||
actionSheetId = actionSheetId >= 0 ? actionSheetId : getHighestId();
|
||||
const actionSheet = actionSheets.get(actionSheetId);
|
||||
if (!actionSheet) {
|
||||
return Promise.reject('action-sheet does not exist');
|
||||
}
|
||||
return actionSheet.dismiss(data, role);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user