Skip to content

Commit

Permalink
fix(tags): Fix name collision with function.name
Browse files Browse the repository at this point in the history
  • Loading branch information
flegall committed Sep 17, 2017
1 parent 853795e commit bb9426c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js-given/src/tags.js
Expand Up @@ -7,7 +7,7 @@ export type Tag = {
} & TagConfiguration;

export type TagConfiguration = {
+name: string,
+tagName: string,
+description: string,
+values: string[],
+parentTags: Tag[],
Expand All @@ -23,7 +23,7 @@ type BuildTagOptions = {
tagDescriptionGenerator: (tag: TagConfiguration, value: string) => string,
};
export function buildTag(
name: string,
tagName: string,
{
description = '',
style = '',
Expand All @@ -42,9 +42,9 @@ export function buildTag(
prependName,
tagDescriptionGenerator,
};
return buildTag(name, buildTagOptions);
return buildTag(tagName, buildTagOptions);
};
tag.name = name;
tag.tagName = tagName;
tag.description = tag.description;
tag.values = values;
tag.parentTags = parentTags;
Expand Down

0 comments on commit bb9426c

Please sign in to comment.