Skip to content

Commit

Permalink
fix typing (#79)
Browse files Browse the repository at this point in the history
* fix type

* fix type

* rm this

* fix
  • Loading branch information
patricklx authored Jul 7, 2024
1 parent b44a0bd commit de0d0db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions ember-routable-component/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ export default function RoutableComponentRoute(Component: any) {
};
}

export class RoutableComponent<T = unknown> extends Component<
GetSignature<T>
> {}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export interface RoutableComponent<T = unknown> {}
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
export class RoutableComponent<T> extends Component<GetSignature<T>> {}

export type RTOC<T> = TemplateOnlyComponent<GetSignature<T>>;
2 changes: 0 additions & 2 deletions test-app/app/templates/application.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{{page-title "TestApp"}}

<h2 id="title">Welcome to Ember</h2>

{{outlet}}

0 comments on commit de0d0db

Please sign in to comment.