Skip to content

Commit 2d44b4b

Browse files
committed
feat(vote-page): remove Glint error comments and add type declarations
1 parent 5dc34ac commit 2d44b4b

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

app/components/vote-page/course-idea-card.gts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,9 @@ export default class CourseIdeaCardComponent extends Component<Signature> {
150150
</div>
151151
</template>
152152
}
153+
154+
declare module '@glint/environment-ember-loose/registry' {
155+
export default interface Registry {
156+
'VotePage::CourseIdeaCard': typeof CourseIdeaCardComponent;
157+
}
158+
}

app/components/vote-page/submit-course-idea-card.gts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,9 @@ export default class SubmitCourseIdeaCardComponent extends Component {
3434
</div>
3535
</template>
3636
}
37+
38+
declare module '@glint/environment-ember-loose/registry' {
39+
export default interface Registry {
40+
'VotePage::SubmitCourseIdeaCard': typeof SubmitCourseIdeaCardComponent;
41+
}
42+
}

app/templates/vote/course-ideas.hbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44

55
<div class="grid grid-cols-1 gap-3 lg:grid-cols-2 mb-8">
66
{{#if this.authenticator.isAuthenticated}}
7-
{{! @glint-expect-error .gts components aren't compatible yet: https://github.com/typed-ember/glint/issues/665 }}
87
<VotePage::SubmitCourseIdeaCard />
98
{{/if}}
109

1110
{{#each this.orderedCourseIdeas as |courseIdea|}}
12-
{{! @glint-expect-error .gts components aren't compatible yet: https://github.com/typed-ember/glint/issues/665 }}
1311
<VotePage::CourseIdeaCard @courseIdea={{courseIdea}} />
1412
{{/each}}
1513
</div>

0 commit comments

Comments
 (0)