Skip to content

Commit

Permalink
Merge pull request #113 from tildeio/fix-types
Browse files Browse the repository at this point in the history
Remove reference to EmberComponent to remove the triple-slash directive
  • Loading branch information
NullVoxPopuli authored Aug 29, 2023
2 parents 142fb29 + 8d4ce8f commit c202e81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ember-element-helper/src/helpers/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { assert, runInDebug } from '@ember/debug';

import { ensureSafeComponent } from '@embroider/util';

import type { ComponentLike } from '@glint/template';

// eslint-disable-next-line @typescript-eslint/no-empty-function
function UNINITIALIZED() {}

Expand All @@ -13,7 +15,7 @@ export type ElementFromTagName<T extends string> = T extends keyof HTMLElementTa
: Element;

type Positional<T extends string> = [name: T];
type Return<T extends string> = typeof EmberComponent<{
type Return<T extends string> = ComponentLike<{
Element: ElementFromTagName<T>;
Blocks: { default: [] };
}>;
Expand Down

0 comments on commit c202e81

Please sign in to comment.