Skip to content

Conversation

@sjwilczynski
Copy link
Contributor

@sjwilczynski sjwilczynski commented Aug 11, 2025

While integrating #169 in 1JS we realized that the FragmentKeys detects as prop that is fragment based any prop of type any. This is obviously wrong but the problem was that any extends { " $data"?: unknown } is true. To fix this we rely on IfAny helper from type-fest (we need a version bump to get it) and add a new type test to verify this

@sjwilczynski sjwilczynski enabled auto-merge (squash) August 11, 2025 17:22
@sjwilczynski sjwilczynski merged commit 692e9c1 into microsoft:main Aug 12, 2025
2 checks passed
@sjwilczynski sjwilczynski deleted the sjwilczy/fixTypeForFragmentKeys branch August 12, 2025 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants