Skip to content

Commit

Permalink
Update basic-example.ts to use public import location (#566)
Browse files Browse the repository at this point in the history
* Update basic-example.ts to use public import location

* Update typing-task.ts to use global import location
  • Loading branch information
johanrd authored Feb 19, 2024
1 parent 8e0c037 commit 2583190
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,5 +1,5 @@
import Component from '@ember/component';
import { task, timeout } from '../../../ember-concurrency/declarations';
import { task, timeout } from 'ember-concurrency';

export default class extends Component {
myTask = task(async (ms: number) => {
Expand Down
4 changes: 2 additions & 2 deletions packages/test-app/snippets/ts/typing-task.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from '@glimmer/component';
import { task, timeout } from '../../../ember-concurrency/declarations';
import type { Task } from '../../../ember-concurrency/declarations';
import { task, timeout } from 'ember-concurrency';
import type { Task } from 'ember-concurrency';

// Define a Type task that takes a single number argument and returns a string
type MyTaskType = Task<string, [number]>;
Expand Down

0 comments on commit 2583190

Please sign in to comment.