diff --git a/docs/api/virtual-item.md b/docs/api/virtual-item.md index 9ab47448..2393788b 100644 --- a/docs/api/virtual-item.md +++ b/docs/api/virtual-item.md @@ -6,7 +6,7 @@ The `VirtualItem` object represents a single item returned by the virtualizer. I ```tsx export interface VirtualItem { - key: string | number + key: string | number | bigint index: number start: number end: number @@ -19,7 +19,7 @@ The following properties and methods are available on each VirtualItem object: ### `key` ```tsx -key: string | number +key: string | number | bigint ``` The unique key for the item. By default this is the item index, but should be configured via the `getItemKey` Virtualizer option. diff --git a/packages/virtual-core/src/index.ts b/packages/virtual-core/src/index.ts index 951a33db..99d38478 100644 --- a/packages/virtual-core/src/index.ts +++ b/packages/virtual-core/src/index.ts @@ -26,7 +26,7 @@ export interface Range { count: number } -type Key = number | string +type Key = number | string | bigint export interface VirtualItem { key: Key