refactor(all): use ts strict mode

This commit is contained in:
Manu Mtz.-Almeida
2018-02-05 18:34:37 +01:00
parent 513b0216dd
commit 2f8a027e2f
35 changed files with 3630 additions and 293 deletions

View File

@@ -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);
}