You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the Bug
I would report two problems related to slide.isEnd()
When I try to get the result as boolean I get the following compilation error
const end: boolean = await this.slides.isEnd();
[ng] ERROR in src/app/something/something.ts(84,9): error TS2322: Type 'boolean | ConstrainBooleanParameters' is not assignable to type 'boolean'.
[ng] Type 'ConstrainBooleanParameters' is not assignable to type 'boolean'.
[ng] ℹ 「wdm」: Failed to compile.
Then I add a look to component.d.ts and noticed that isBeginning isn't declared as isEnd, I guess I should report it
/**
* Get whether or not the current slide is the first slide.
*/
'isBeginning': () => Promise<boolean>;
/**
* Get whether or not the current slide is the last slide.
*/
'isEnd': () => Promise<ConstrainBoolean>;
Related Code
See above
Expected Behavior
The ability to get the value
Workaround
const index: number = await this.slides.getActiveIndex();
const length: number = await this.slides.length();
const end: boolean = index === (length - 1);
The text was updated successfully, but these errors were encountered:
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Ionic Info
Ionic/Angular v4-beta.6
Describe the Bug
I would report two problems related to
slide.isEnd()
When I try to get the result as
boolean
I get the following compilation errorThen I add a look to
component.d.ts
and noticed thatisBeginning
isn't declared asisEnd
, I guess I should report itRelated Code
See above
Expected Behavior
The ability to get the value
Workaround
The text was updated successfully, but these errors were encountered: