Skip to content

Commit

Permalink
fix(docs): fix aspects example not being valid TypeScript
Browse files Browse the repository at this point in the history
Closes #1892
  • Loading branch information
ansgarm committed Aug 2, 2022
1 parent 5e54269 commit 6bba515
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/docs/cdktf/concepts/aspects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ import { Aspects, IAspect } from "cdktf";
// Not all constructs are taggable, so we need to filter it
type TaggableConstruct = IConstruct & {
tags?: { [key: string]: string };
tagsInput?: { [key: string]: string };
};
function isTaggableConstruct(x: IConstruct): x is TaggableConstruct {
return "tags" in x;
return "tags" in x && "tagsInput" in x;
}

export class TagsAddingAspect implements IAspect {
Expand Down

0 comments on commit 6bba515

Please sign in to comment.