Skip to content

Commit

Permalink
refactor(metadata): Rename define function to init in metadata.ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mdy-m committed Jul 28, 2024
1 parent b8786b0 commit b4a1b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/metadata/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Reflect {

const metadataStorage: MetadataStorage = new Map();

export function define(metadataKey: MetadataKey, metadataValue: MetadataValue, target: MetadataTarget, propertyKey?: MetadataKey): void {
export function init(metadataKey: MetadataKey, metadataValue: MetadataValue, target: MetadataTarget, propertyKey?: MetadataKey): void {
let targetMetadata = metadataStorage.get(target);
if (!targetMetadata) {
targetMetadata = new Map();
Expand Down

0 comments on commit b4a1b5d

Please sign in to comment.