types
types copied to clipboard
`MemoryStoreService:UpdateAsync` types are wrong
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