mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This PR makes a number of changes to the metadata API to address design
flaws in the previous API. Some of the changes include:
- Replaces the previous `MetadataKey` and `AggregateMetadataKey` with a
single unified `MetadataKey` that is used for all metadata.
- The new `MetadataKey` is only defined for fields that explicitly set
it in their schema logic
- All metadata now has reducer / aggregate behavior
- The new `MetadataKey` has an option to create a managed key which
wraps the result of its computed aggregate into some other structure
such as a `Resource` or `linkedSignal`
- There are now two APIs to create metadata keys
- `createMetadataKey` for pure computed metadata
- `createManagedMetadataKey` for metadata that manages its computation
internally
(cherry picked from commit ebc5c2b083)
22 lines
648 B
TypeScript
22 lines
648 B
TypeScript
/**
|
|
* @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
|
|
*/
|
|
|
|
/**
|
|
* @module
|
|
* @description
|
|
* Entry point for all public APIs of this package.
|
|
*/
|
|
export * from './src/api/control';
|
|
export * from './src/api/di';
|
|
export * from './src/api/field_directive';
|
|
export * from './src/api/rules';
|
|
export * from './src/api/rules/debounce';
|
|
export * from './src/api/rules/metadata';
|
|
export * from './src/api/rules/validation/validation_errors';
|
|
export * from './src/api/structure';
|
|
export * from './src/api/types';
|