Skip to content

Commit

Permalink
Fix ts build errors (#475)
Browse files Browse the repository at this point in the history
* Fix ts build errors

* fix syntax for older TS
  • Loading branch information
machty authored Aug 24, 2022
1 parent 36dcaaf commit c3ec012
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/dummy/snippets/ts/typing-task.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Component from '@glimmer/component'
import { task, timeout } from 'ember-concurrency'
import type { Task } from 'ember-concurrency'
import Component from '@glimmer/component';
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, [ms: number]>;
type MyTaskType = Task<string, [number]>;

interface Args {
fooTask: MyTaskType;
Expand All @@ -17,4 +17,4 @@ export default class extends Component<Args> {

return length;
});
}
}

0 comments on commit c3ec012

Please sign in to comment.