Skip to content

Commit

Permalink
Fixed GetRangeAsync not having correct optional parameters (#1201)
Browse files Browse the repository at this point in the history
Hello,
according to the
[docs](https://create.roblox.com/docs/reference/engine/classes/MemoryStoreSortedMap#GetRangeAsync),
the `GetRangeAsync` should have `exclusiveLowerBound` and
`exclusiveUpperBound` as optional parametrs, while currently that's not
the case.

![image](https://github.com/roblox-ts/types/assets/40070133/8bcc7625-76ed-46b2-a726-aeb0bfd805c3)



![image](https://github.com/roblox-ts/types/assets/40070133/d061ee54-1faf-4b04-a2b6-b6c86f4ca513)

---------

Co-authored-by: Dion <[email protected]>
  • Loading branch information
luketeam5 and Dionysusnu authored Mar 11, 2024
1 parent b43091d commit 42d9f71
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/customDefinitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,14 @@ interface MemoryStoreSortedMap extends Instance {
expiration: number,
sortKey?: string | number,
): boolean;
GetRangeAsync(
this: MemoryStoreSortedMap,
direction: CastsToEnum<Enum.SortDirection>,
count: number,
exclusiveLowerBound?: { key?: string; sortKey?: string | number },
exclusiveUpperBound?: { key?: string; sortKey?: string | number },
): Array<{ key: string; value: unknown; sortKey?: string | number }>;
GetAsync(this: MemoryStoreSortedMap, key: string): LuaTuple<[key?: string, sortKey?: string | number]>;
}

/** @server */
Expand Down

0 comments on commit 42d9f71

Please sign in to comment.