Skip to content

Commit 29f71da

Browse files
Merge pull request Expensify#731 from OlGierd03/@OlGierd03/remove-default-OnyxKey-type-argument-in-OnyxUpdate
Remove default OnyxKey type argument in OnyxUpdate
2 parents 957634a + c77be83 commit 29f71da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ type ExpandOnyxKeys<TKey extends OnyxKey> = TKey extends CollectionKeyBase ? NoI
334334
* If a new method is added to OnyxUtils.METHOD constant, it must be added to OnyxMethodValueMap type.
335335
* Otherwise it will show static type errors.
336336
*/
337-
type OnyxUpdate<TKey extends OnyxKey = OnyxKey> = {
337+
type OnyxUpdate<TKey extends OnyxKey> = {
338338
// ⚠️ DO NOT CHANGE THIS TYPE, UNLESS YOU KNOW WHAT YOU ARE DOING. ⚠️
339339
[K in TKey]:
340340
| {onyxMethod: typeof OnyxUtils.METHOD.SET; key: ExpandOnyxKeys<K>; value: OnyxSetInput<K>}

0 commit comments

Comments
 (0)