Skip to content

Commit

Permalink
chore: Checked that renaming the helpers still allows name collisions…
Browse files Browse the repository at this point in the history
… to be fixed
  • Loading branch information
ijlee2 committed Jan 3, 2023
1 parent 140476f commit 8df608b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/dummy/app/components/edge-case.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div>
Arguments:
{{@aspectRatio}},
{{@height}},
{{@width}}
</div>

<div>
{{#let
(hash
aspect-ratio=(aspect-ratio) height=(height) width=(width)
)
as |obj|
}}
{{! template-lint-disable no-log }}
{{log obj.aspect-ratio obj.height obj.width}}
{{/let}}
</div>
19 changes: 19 additions & 0 deletions tests/dummy/app/components/edge-case.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import templateOnlyComponent from '@ember/component/template-only';

export interface EdgeCaseComponentSignature {
Args: {
aspectRatio?: number;
height?: number;
width?: number;
};
}

const EdgeCaseComponent = templateOnlyComponent<EdgeCaseComponentSignature>();

export default EdgeCaseComponent;

declare module '@glint/environment-ember-loose/registry' {
export default interface Registry {
EdgeCase: typeof EdgeCaseComponent;
}
}
2 changes: 2 additions & 0 deletions tests/dummy/app/templates/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
To see what you can do with container queries, visit one of
the examples and resize the window!
</p>

<EdgeCase @aspectRatio={{1.5}} @height={{2}} @width={{3}} />
</Ui::Page>

0 comments on commit 8df608b

Please sign in to comment.