Skip to content

Commit 2a6d5ee

Browse files
authored
fix: update typing of virtual-list first/lastVisibleIndex getters (#2135)
1 parent e8caa27 commit 2a6d5ee

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/vaadin-virtual-list/src/vaadin-virtual-list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class VirtualListElement extends ElementMixin(ThemableMixin(PolymerElement)) {
146146
/**
147147
* Gets the index of the first visible item in the viewport.
148148
*
149-
* @type {number}
149+
* @return {number}
150150
*/
151151
get firstVisibleIndex() {
152152
return this.__virtualizer.firstVisibleIndex;
@@ -155,7 +155,7 @@ class VirtualListElement extends ElementMixin(ThemableMixin(PolymerElement)) {
155155
/**
156156
* Gets the index of the last visible item in the viewport.
157157
*
158-
* @type {number}
158+
* @return {number}
159159
*/
160160
get lastVisibleIndex() {
161161
return this.__virtualizer.lastVisibleIndex;

packages/vaadin-virtual-list/src/virtualizer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class Virtualizer {
6666
/**
6767
* Gets the index of the first visible item in the viewport.
6868
*
69-
* @type {number}
69+
* @return {number}
7070
*/
7171
get firstVisibleIndex() {
7272
return this.__adapter.adjustedFirstVisibleIndex;
@@ -75,7 +75,7 @@ export class Virtualizer {
7575
/**
7676
* Gets the index of the last visible item in the viewport.
7777
*
78-
* @type {number}
78+
* @return {number}
7979
*/
8080
get lastVisibleIndex() {
8181
return this.__adapter.adjustedLastVisibleIndex;

0 commit comments

Comments
 (0)