Skip to content

Commit

Permalink
add names property to NamedBlocks interface
Browse files Browse the repository at this point in the history
  • Loading branch information
locks committed Apr 8, 2020
1 parent 131eaba commit 8f6edcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/@glimmer/interfaces/lib/template.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export interface NamedBlocks {
has(name: string): boolean;
with(name: string, block: Option<CompilableBlock>): NamedBlocks;
hasAny: boolean;
names: string[];
}

export interface ContainingMetadata {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function CompileArgs({
}: ArgsOptions): StatementCompileActions {
let out: StatementCompileActions = [];

let blockNames: string[] = ((blocks as any) as { names: string[] }).names;
let blockNames: string[] = blocks.names;
for (let i = 0; i < blockNames.length; i++) {
out.push(PushYieldableBlock(blocks.get(blockNames[i])));
}
Expand Down

0 comments on commit 8f6edcc

Please sign in to comment.