[crud] Narrow resource type (#32203)
Small refactor to the `resource` type to narrow it to an arbitrary object or void/null instead of the top type. This makes the overload on useEffect simpler since the return type of create is no longer widened to the top type when we merge their definitions. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32203). * #32206 * #32205 * #32204 * __->__ #32203
L
lauren committed
899e3d1297ec15a5aa8d73e2f1bd478918090a12
Parent: 0a7dc1b
Committed by GitHub <noreply@github.com>
on 2/11/2025, 6:52:25 PM