UNPKG

static-injector

Version:

Angular 依赖注入独立版本;Angular dependency injection standalone version

17 lines (16 loc) 557 B
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import { Resource, ResourceSnapshot } from './api'; /** * Creates a `Resource` driven by a source of `ResourceSnapshot`s. * * @see [Resource composition with snapshots](guide/signals/resource#resource-composition-with-snapshots) * * @experimental */ export declare function resourceFromSnapshots<T>(source: () => ResourceSnapshot<T>): Resource<T>;