Alert Input Parameters missing

So I wanted to add a maximum characters amount to an input field in an alert, and according to the alertContoller docs (https://ionicframework.com/docs/v2/api/components/alert/AlertController/) there should be min and max properties in Input options, I also looked around and found the original feature requests and commits. However, when I try to use it in my code it tells me the argument type is not allowed

Argument of type ‘{ title: string; subTitle: string; inputs: { name: string; placeholder: string; type: string; max…’ is not assignable to parameter of type ‘AlertOptions’. Types of property ‘inputs’ are incompatible. Type ‘{ name: string; placeholder: string; type: string; max: any; }[]’ is not assignable to type ‘AlertInputOptions[]’. Type ‘{ name: string; placeholder: string; type: string; max: any; }’ is not assignable to type ‘AlertInputOptions’. Object literal may only specify known properties, and ‘max’ does not exist in type ‘AlertInputOptions’.

I tried using npm install ionic to get the latest version and still nothing. Here is my code:

newObserver(){
let alert1 = this.alertCtrl.create({
title: ‘New Observer’,
subTitle: ‘Enter the name of the new Observer’,
inputs: [
{
name: ‘Name’,
placeholder: ‘Name’,
type: ‘text’,
max: 50
}
],
buttons:[
{text: ‘Cancel’},
{text:‘Save’,
handler: data => {
console.log(data);
this.fieldDataService.observers.push(data.Name);
this.addObsForm.controls[‘name’].setValue(data.Name);
}}
]
});
alert1.present();
}

What version do you have? I don’t think anything before 2.3.0 had min/max.

When I just run ‘ionic’ is says I have CLI v 2.2.2. Running npm install -g cordova ionic doesn’t update it any further. How can I get the latest release?

Explicit version on npm i or modifying package.json to edit the dependency.

okay so I looked up the versions of ionic and it seems like it jumps straight from 2.2.2 to 3.0.0-alpha. Is there a stable release of ionic that has this functionality?

2.3.0.