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