Fix MemoryStoreService:UpdateAsync types#1395
Fix MemoryStoreService:UpdateAsync types#1395jackTabsCode wants to merge 1 commit intoroblox-ts:masterfrom
MemoryStoreService:UpdateAsync types#1395Conversation
|
The preferred way of writing a nullable LuaTuple is Your issue mentions:
This suggests we should apply the LuaTuple as a generic (rather than just the value), so that if the transform function narrows, the return type of UpdateAsync will match that. |
I'm a little uncertain about the
LuaTupletypes here. I don't know if there's precedent in the types for how to handle "nullable" multi-returns.I think that this type is fine for the transform function return because it tells the user that they need to return nothing at all, or the value, or the value and the sortKey, not just the sortKey.
Fixes #1394