Skip to content

Commit

Permalink
chore: update ember types to stable ember v5 types
Browse files Browse the repository at this point in the history
  • Loading branch information
josemarluedke committed Jul 29, 2023
1 parent c822a1a commit 4654e92
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 272 deletions.
17 changes: 16 additions & 1 deletion config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,22 @@ module.exports = async function () {
name: 'ember-lts-4.12',
npm: {
devDependencies: {
'ember-source': '~4.12.1'
'ember-source': '~4.12.1',
'@types/ember-qunit': '^6.1.1',
'@types/ember-resolver': '^9.0.0',
'@types/ember__application': '^4.0.6',
'@types/ember__array': '^4.0.4',
'@types/ember__component': '^4.0.14',
'@types/ember__debug': '^4.0.4',
'@types/ember__error': '^4.0.3',
'@types/ember__object': '^4.0.6',
'@types/ember__routing': '^4.0.13',
'@types/ember__runloop': '^4.0.4',
'@types/ember__service': '^4.0.3',
'@types/ember__string': '^3.0.11',
'@types/ember__template': '^4.0.2',
'@types/ember__test': '^4.0.2',
'@types/ember__test-helpers': '^2.9.1'
}
}
},
Expand Down
13 changes: 0 additions & 13 deletions packages/buttons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,6 @@
"@glimmer/tracking": "^1.1.2",
"@types/ember-qunit": "^6.1.1",
"@types/ember-resolver": "^9.0.0",
"@types/ember__application": "^4.0.6",
"@types/ember__array": "^4.0.4",
"@types/ember__component": "^4.0.14",
"@types/ember__debug": "^4.0.4",
"@types/ember__error": "^4.0.3",
"@types/ember__object": "^4.0.6",
"@types/ember__routing": "^4.0.13",
"@types/ember__runloop": "^4.0.4",
"@types/ember__service": "^4.0.3",
"@types/ember__string": "^3.0.11",
"@types/ember__template": "^4.0.2",
"@types/ember__test": "^4.0.2",
"@types/ember__test-helpers": "^2.9.1",
"@types/htmlbars-inline-precompile": "^3.0.0",
"@types/qunit": "^2.19.6",
"@types/rsvp": "^4.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/buttons/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'ember-source/types';
13 changes: 0 additions & 13 deletions packages/changeset-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,6 @@
"@glimmer/tracking": "^1.1.2",
"@types/ember-qunit": "^6.1.1",
"@types/ember-resolver": "^9.0.0",
"@types/ember__application": "^4.0.6",
"@types/ember__array": "^4.0.4",
"@types/ember__component": "^4.0.14",
"@types/ember__debug": "^4.0.4",
"@types/ember__error": "^4.0.3",
"@types/ember__object": "^4.0.6",
"@types/ember__routing": "^4.0.13",
"@types/ember__runloop": "^4.0.4",
"@types/ember__service": "^4.0.3",
"@types/ember__string": "^3.0.11",
"@types/ember__template": "^4.0.2",
"@types/ember__test": "^4.0.2",
"@types/ember__test-helpers": "^2.9.1",
"@types/htmlbars-inline-precompile": "^3.0.0",
"@types/qunit": "^2.19.6",
"@types/rsvp": "^4.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/changeset-form/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'ember-source/types';
13 changes: 0 additions & 13 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,6 @@
"@glimmer/component": "^1.1.2",
"@types/ember-qunit": "^6.1.1",
"@types/ember-resolver": "^9.0.0",
"@types/ember__application": "^4.0.6",
"@types/ember__array": "^4.0.4",
"@types/ember__component": "^4.0.14",
"@types/ember__debug": "^4.0.4",
"@types/ember__error": "^4.0.3",
"@types/ember__object": "^4.0.6",
"@types/ember__routing": "^4.0.13",
"@types/ember__runloop": "^4.0.4",
"@types/ember__service": "^4.0.3",
"@types/ember__string": "^3.0.11",
"@types/ember__template": "^4.0.2",
"@types/ember__test": "^4.0.2",
"@types/ember__test-helpers": "^2.9.1",
"@types/htmlbars-inline-precompile": "^3.0.0",
"@types/qunit": "^2.19.6",
"@types/rsvp": "^4.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/core/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'ember-source/types';
13 changes: 0 additions & 13 deletions packages/forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,6 @@
"@glimmer/tracking": "^1.1.2",
"@types/ember-qunit": "^6.1.1",
"@types/ember-resolver": "^9.0.0",
"@types/ember__application": "^4.0.6",
"@types/ember__array": "^4.0.4",
"@types/ember__component": "^4.0.14",
"@types/ember__debug": "^4.0.4",
"@types/ember__error": "^4.0.3",
"@types/ember__object": "^4.0.6",
"@types/ember__routing": "^4.0.13",
"@types/ember__runloop": "^4.0.4",
"@types/ember__service": "^4.0.3",
"@types/ember__string": "^3.0.11",
"@types/ember__template": "^4.0.2",
"@types/ember__test": "^4.0.2",
"@types/ember__test-helpers": "^2.9.1",
"@types/htmlbars-inline-precompile": "^3.0.0",
"@types/qunit": "^2.19.6",
"@types/rsvp": "^4.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/forms/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'ember-source/types';
4 changes: 2 additions & 2 deletions packages/notifications/addon/-private/timer.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { tracked } from '@glimmer/tracking';
import { later, cancel } from '@ember/runloop';
import { EmberRunTimer } from '@ember/runloop/types';
import type { Timer as EmberTimer } from '@ember/runloop';
import { action } from '@ember/object';

export default class Timer {
@tracked remaining: number;
@tracked isRunning = true;

readonly onFinish: () => void;
private timer?: EmberRunTimer;
private timer?: EmberTimer;
private start!: number;

constructor(duration: number, onFinish: () => void) {
Expand Down
13 changes: 0 additions & 13 deletions packages/notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,6 @@
"@glimmer/tracking": "^1.1.2",
"@types/ember-qunit": "^6.1.1",
"@types/ember-resolver": "^9.0.0",
"@types/ember__application": "^4.0.6",
"@types/ember__array": "^4.0.4",
"@types/ember__component": "^4.0.14",
"@types/ember__debug": "^4.0.4",
"@types/ember__error": "^4.0.3",
"@types/ember__object": "^4.0.6",
"@types/ember__routing": "^4.0.13",
"@types/ember__runloop": "^4.0.4",
"@types/ember__service": "^4.0.3",
"@types/ember__string": "^3.0.11",
"@types/ember__template": "^4.0.2",
"@types/ember__test": "^4.0.2",
"@types/ember__test-helpers": "^2.9.1",
"@types/htmlbars-inline-precompile": "^3.0.0",
"@types/qunit": "^2.19.6",
"@types/rsvp": "^4.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/notifications/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'ember-source/types';
13 changes: 0 additions & 13 deletions packages/overlays/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,6 @@
"@glimmer/tracking": "^1.1.2",
"@types/ember-qunit": "^6.1.1",
"@types/ember-resolver": "^9.0.0",
"@types/ember__application": "^4.0.6",
"@types/ember__array": "^4.0.4",
"@types/ember__component": "^4.0.14",
"@types/ember__debug": "^4.0.4",
"@types/ember__error": "^4.0.3",
"@types/ember__object": "^4.0.6",
"@types/ember__routing": "^4.0.13",
"@types/ember__runloop": "^4.0.4",
"@types/ember__service": "^4.0.3",
"@types/ember__string": "^3.0.11",
"@types/ember__template": "^4.0.2",
"@types/ember__test": "^4.0.2",
"@types/ember__test-helpers": "^2.9.1",
"@types/htmlbars-inline-precompile": "^3.0.0",
"@types/qunit": "^2.19.6",
"@types/rsvp": "^4.0.4",
Expand Down
1 change: 1 addition & 0 deletions packages/overlays/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'ember-source/types';
13 changes: 0 additions & 13 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,6 @@
"@tailwindcss/typography": "^0.5.9",
"@types/ember-qunit": "^6.1.1",
"@types/ember-resolver": "^9.0.0",
"@types/ember__application": "^4.0.6",
"@types/ember__array": "^4.0.4",
"@types/ember__component": "^4.0.14",
"@types/ember__debug": "^4.0.4",
"@types/ember__error": "^4.0.3",
"@types/ember__object": "^4.0.6",
"@types/ember__routing": "^4.0.13",
"@types/ember__runloop": "^4.0.4",
"@types/ember__service": "^4.0.3",
"@types/ember__string": "^3.0.11",
"@types/ember__template": "^4.0.2",
"@types/ember__test": "^4.0.2",
"@types/ember__test-helpers": "^2.9.1",
"@types/htmlbars-inline-precompile": "^3.0.0",
"@types/qunit": "^2.19.6",
"@types/rsvp": "^4.0.4",
Expand Down
1 change: 1 addition & 0 deletions site/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'ember-source/types';

Check failure on line 1 in site/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Tests

Replace `·import·'ember-source/types';` with `import·'ember-source/types';⏎`
13 changes: 0 additions & 13 deletions test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,6 @@
"@glimmer/tracking": "^1.1.2",
"@types/ember-qunit": "^6.1.1",
"@types/ember-resolver": "^9.0.0",
"@types/ember__application": "^4.0.6",
"@types/ember__array": "^4.0.4",
"@types/ember__component": "^4.0.14",
"@types/ember__debug": "^4.0.4",
"@types/ember__error": "^4.0.3",
"@types/ember__object": "^4.0.6",
"@types/ember__routing": "^4.0.13",
"@types/ember__runloop": "^4.0.4",
"@types/ember__service": "^4.0.3",
"@types/ember__string": "^3.0.11",
"@types/ember__template": "^4.0.2",
"@types/ember__test": "^4.0.2",
"@types/ember__test-helpers": "^2.9.1",
"@types/htmlbars-inline-precompile": "^3.0.0",
"@types/sinon": "^10.0.15",
"autoprefixer": "^10.4.14",
Expand Down
1 change: 1 addition & 0 deletions test-app/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import 'ember-source/types';

Check failure on line 1 in test-app/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Tests

Delete `·`
Loading

0 comments on commit 4654e92

Please sign in to comment.