Skip to content

Commit

Permalink
Merge pull request #1375 from runspired/patch-1
Browse files Browse the repository at this point in the history
fix: buildElement options should be optional
  • Loading branch information
locks authored Feb 10, 2022
2 parents e68cdb5 + 7345547 commit 4e31871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@glimmer/syntax/lib/v1/public-builders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export interface BuildElementOptions {
loc?: SourceSpan;
}

function buildElement(tag: TagDescriptor, options: BuildElementOptions): ASTv1.ElementNode {
function buildElement(tag: TagDescriptor, options: BuildElementOptions = {}): ASTv1.ElementNode {
let { attrs, blockParams, modifiers, comments, children, loc } = options;

let tagName: string;
Expand Down

0 comments on commit 4e31871

Please sign in to comment.