mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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:
parent
639a785376
commit
0d55de82f9
1 changed files with 2 additions and 2 deletions
|
|
@ -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>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue