Skip to content

Commit aba8f5d

Browse files
committed
fix(blueprint): bring apps closer to typechecking out of the box
1 parent a444a3b commit aba8f5d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

blueprint-files/ember-cli-typescript/__config_root__/config/environment.d.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@ export default config;
22

33
/**
44
* Type declarations for
5-
* import config from './config/environment'
6-
*
7-
* For now these need to be managed by the developer
8-
* since different ember addons can materialize new entries.
5+
* import config from 'my-app/config/environment'
96
*/
107
declare const config: {
11-
environment: any;
8+
environment: string;
129
modulePrefix: string;
1310
podModulePrefix: string;
1411
locationType: string;
1512
rootURL: string;
13+
APP: Record<string, unknown>;
1614
};

ts/blueprints/ember-cli-typescript/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ module.exports = {
146146
{ name: 'ember-cli-typescript-blueprints', target: 'latest' },
147147
{ name: 'typescript', target: 'latest' },
148148
{ name: '@types/ember', target: 'latest' },
149-
{ name: '@types/rsvp', target: 'latest' },
150149
{ name: '@types/ember__test-helpers', target: 'latest' },
150+
{ name: '@types/ember-resolver', target: 'latest' },
151151
];
152152

153153
if (this._has('ember-data')) {

0 commit comments

Comments
 (0)