mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style: type cleanup
This commit is contained in:
@@ -54,7 +54,7 @@ export class SegmentView implements ComponentInterface {
|
||||
});
|
||||
};
|
||||
|
||||
private getSegmentButtons(): HTMLIonSegmentButtonElement[] | [] {
|
||||
private getSegmentButtons(): HTMLIonSegmentButtonElement[] {
|
||||
const { segmentEl } = this;
|
||||
|
||||
if (!segmentEl) {
|
||||
|
||||
@@ -220,7 +220,7 @@ export class Segment implements ComponentInterface {
|
||||
this.ionChange.emit({ value });
|
||||
}
|
||||
|
||||
private getButtons(): HTMLIonSegmentButtonElement[] | [] {
|
||||
private getButtons(): HTMLIonSegmentButtonElement[] {
|
||||
return Array.from(this.el.querySelectorAll('ion-segment-button'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user