types icon indicating copy to clipboard operation
types copied to clipboard

`MemoryStoreService:UpdateAsync` types are wrong

Open jackTabsCode opened this issue 6 months ago • 0 comments

The transform function is supposed to accept the old value and sort key, and return both the new value and sort key, or nil if the update is supposed to be cancelled. The current implementation does not have the sort key in the input or return, and also the return is not nullable when it should be.

Additionally the return value of the method is supposed to reflect the return of the transform function, which includes the sort key, and should also be nullable.

https://github.com/roblox-ts/types/blob/f0286fde9e9ce04c96cf3fbf1b4768bee7d129de/include/customDefinitions.d.ts#L730-L735

https://create.roblox.com/docs/reference/engine/classes/MemoryStoreSortedMap#UpdateAsync

jackTabsCode avatar Oct 08 '25 17:10 jackTabsCode