Commit 81f48343 authored by nanahira's avatar nanahira

rename

parent 2e7718bd
......@@ -18,12 +18,12 @@ Either Reflector or Metadata Setter accepts 2 type arguments. The first one is t
### Metadata Setter
* `Metadata.set(metadataKey, value)` Sets and overrides the metadata.
* `MetadataSetter.set(metadataKey, value)` Sets and overrides the MetadataSetter.
* `Metadata.append(metadataKey, value)` Append to the the metadata array. The array would be created if not exists.
* `MetadataSetter.append(metadataKey, value)` Append to the the metadata array. The array would be created if not exists.
* `Metadata.appendUnique(metadataKey, value)` Same as above but no duplicate values.
* `MetadataSetter.appendUnique(metadataKey, value)` Same as above but no duplicate values.
* `Metadata.concat(metadataKey, value)` The value must be an array, and the metadata array would be joined together.
* `MetadataSetter.concat(metadataKey, value)` The value must be an array, and the metadata array would be joined together.
......@@ -5,7 +5,7 @@ export type AllDecorators = MethodDecorator &
ClassDecorator &
PropertyDecorator;
export class Metadata<M extends StringDict, AM extends StringDict> {
export class MetadataSetter<M extends StringDict, AM extends StringDict> {
private getMetadataInDecorator<
K extends MergeKey<M, AM>,
GM extends Record<MergeKey<M, AM>, any> = GenericMap<M, AM>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment