We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 379ad3f commit c5c0952Copy full SHA for c5c0952
1 file changed
src/selectors/stableReportSelector.ts
@@ -23,6 +23,8 @@ type ExcludedFields = ValidReportKeys<
23
]
24
>;
25
26
+type StableReport = Omit<Report, TupleToUnion<ExcludedFields>>;
27
+
28
/**
29
* Stable `Report` projection for the `ReportActionItem` subtree.
30
*/
@@ -89,7 +91,7 @@ function stableReportSelector(report: OnyxEntry<Report>) {
89
91
nextStep: report.nextStep,
90
92
pendingAction: report.pendingAction,
93
pendingFields: report.pendingFields,
- } satisfies Omit<Report, TupleToUnion<ExcludedFields>>;
94
+ } satisfies Record<keyof StableReport, unknown> & StableReport;
95
}
96
97
export default stableReportSelector;
0 commit comments