Skip to content

Commit

Permalink
Simplify ts snippets by using the same import statements for `import …
Browse files Browse the repository at this point in the history
…Component from `@glimmer/component` (#567)

* Update basic-example.ts to use standard Component import from '@glimmer/component`

* Update template-import-example.txt to use standard Component import from '@glimmer/component`

---------

Co-authored-by: Alex Matchneer <machty@gmail.com>
  • Loading branch information
johanrd and machty authored Feb 19, 2024
1 parent 2583190 commit aed2ae1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/test-app/snippets/ts/basic-example.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Component from '@ember/component';
import Component from '@glimmer/component';
import { task, timeout } from 'ember-concurrency';

export default class extends Component {
Expand Down
4 changes: 2 additions & 2 deletions packages/test-app/snippets/ts/template-import-example.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import GlimmerComponent from "@glimmer/component";
import Component from "@glimmer/component";
import { task } from "ember-concurrency";
import perform from "ember-concurrency/helpers/perform";
import { on } from "@ember/modifier";
import { fn } from "@ember/helper";

export default class Demo extends GlimmerComponent {
export default class Demo extends Component {
taskNoArgs = task(async () => {
console.log("Look ma, no args!");
});
Expand Down

0 comments on commit aed2ae1

Please sign in to comment.