Skip to content

Commit

Permalink
Merge pull request #280 from wagenet/fix-component-super-args
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreeman authored Apr 5, 2022
2 parents 65d7cee + 78acc0e commit a098cca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/environment-ember-loose/glimmer-component/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ type Get<T, Key, Otherwise = EmptyObject> = Key extends keyof T
// `ConstructorParameters` type inline when producing `.d.ts` files, which
// breaks consumers depending on their version of the upstream types.
type ComponentConstructor = {
new <T extends ComponentSignature = {}>(
...args: ConstructorParameters<GlimmerComponentConstructor>
): Component<T>;
new <T extends ComponentSignature = {}>(owner: unknown, args: unknown): Component<T>;
};

const Component = GlimmerComponent as unknown as StaticSide<GlimmerComponentConstructor> &
Expand Down

0 comments on commit a098cca

Please sign in to comment.