Está dando um erro no alerta, o erro não impede da aplicação rodar, porém por que ele está ocorrendo ?
typescript: src/pages/cadastro/cadastro.ts, line: 28
Argument of type '{ title: string; buttons: { text: string; handler: () => Promise<any>; }[]; }' is not
assignable to parameter of type 'AlertOptions'. Types of property 'buttons' are incompatible. Type '{ text:
string; handler: () => Promise<any>; }[]' is not assignable to type '(string | AlertButton)[]'. Type '{
text: string; handler: () => Promise<any>; }' is not assignable to type 'string | AlertButton'. Type '{
text: string; handler: () => Promise<any>; }' is not assignable to type 'AlertButton'. Types of property
'handler' are incompatible. Type '() => Promise<any>' is not assignable to type '(value: any) => boolean |
void'. Type 'Promise<any>' is not assignable to type 'boolean | void'. Type 'Promise<any>' is not assignable
to type 'void'.
L28: this._alerta = this._alertCtrl.create({
L29: title: 'Aviso',