mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
add more types to function parameters and return type
This commit is contained in:
@ -555,28 +555,28 @@ export class Slides extends Ion {
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
getIndex() {
|
||||
getIndex(): number {
|
||||
return this.slider.activeIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
getNumSlides() {
|
||||
getNumSlides(): number {
|
||||
return this.slider.slides.length;
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
isAtEnd() {
|
||||
isAtEnd(): boolean {
|
||||
return this.slider.isEnd;
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
isAtBeginning() {
|
||||
isAtBeginning(): boolean {
|
||||
return this.slider.isBeginning;
|
||||
}
|
||||
|
||||
@ -597,9 +597,9 @@ export class Slides extends Ion {
|
||||
})
|
||||
export class Slide {
|
||||
private ele: HTMLElement;
|
||||
|
||||
|
||||
@Input() zoom;
|
||||
|
||||
|
||||
constructor(
|
||||
elementRef: ElementRef,
|
||||
@Host() slides: Slides
|
||||
|
Reference in New Issue
Block a user