refactor(core): mark resource() overloads as @publicApi 22.0

#68253 graduated `resource`, `rxResource`, and `httpResource` to stable
by swapping `@experimental` for `@publicApi 22.0` across three files.
The two `resource()` overloads in `packages/core/src/resource/resource.ts`
were missed and still carried `@experimental 19.0`. The public-api
golden already lists both overloads as `// @public`, so this aligns the
source with what the rest of the codebase reflects.

(cherry picked from commit 7557b339ea)
This commit is contained in:
Kam 2026-05-14 00:16:32 +03:00 committed by Matthew Beck
parent 639a785376
commit 0d55de82f9

View file

@ -46,7 +46,7 @@ import {StateKey, TransferState} from '../transfer_state';
*
* @see [Async reactivity with resources](guide/signals/resource)
*
* @experimental 19.0
* @publicApi 22.0
*/
export function resource<T, R>(
options: ResourceOptions<T, R> & {defaultValue: NoInfer<T>},
@ -60,7 +60,7 @@ export function resource<T, R>(
* `resource` will cancel in-progress loads via the `AbortSignal` when destroyed or when a new
* request object becomes available, which could prematurely abort mutations.
*
* @experimental 19.0
* @publicApi 22.0
* @see [Async reactivity with resources](guide/signals/resource)
*/
export function resource<T, R>(options: ResourceOptions<T, R>): ResourceRef<T | undefined>;