@@ -7,7 +7,7 @@ import { setupRenderingTest } from 'ember-qunit';
77import { cell , use } from ' ember-resources' ;
88import { Duration , Interval , Seconds } from ' reactiveweb/interval' ;
99
10- function timeout(ms ) {
10+ function timeout(ms : number ) {
1111 return new Promise ((resolve ) => setTimeout (resolve , ms ));
1212}
1313
@@ -43,8 +43,8 @@ module('Interval | rendering', function (hooks) {
4343 test (' it works' , async function (assert ) {
4444 const config = {
4545 create : () => cell (' hello' ),
46- update : (x ) => (x .current += ' !' ),
47- read : (x ) => x .current ,
46+ update : (x : ReturnType < typeof cell < string >> ) => (x .current += ' !' ),
47+ read : (x : ReturnType < typeof cell < string >> ) => x .current ,
4848 };
4949
5050 await render (<template >{{Interval 50 config }} </template >);
@@ -93,7 +93,7 @@ module('Seconds | rendering', function (hooks) {
9393module (' Duration | js' , function (hooks ) {
9494 setupRenderingTest (hooks );
9595
96- const text = () => find (' out' ).textContent ;
96+ const text = () => find (' out' )? .textContent ;
9797
9898 test (' it works' , async function (assert ) {
9999 class Test extends Component {
@@ -115,7 +115,7 @@ module('Duration | js', function (hooks) {
115115module (' Duration | rendering' , function (hooks ) {
116116 setupRenderingTest (hooks );
117117
118- const text = () => find (' out' ).textContent ;
118+ const text = () => find (' out' )? .textContent ;
119119
120120 test (' it works' , async function (assert ) {
121121 await render (
0 commit comments