Skip to content

Commit cc51710

Browse files
committed
Update default blueprint for types/<your app>/index.d.ts.
1 parent 1a1d399 commit cc51710

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ These are all fallbacks, of course, you should use the types supplied directly w
131131

132132
At the root of your application or addon, we include a `types/<your app>` directory with an `index.d.ts` file in it. Anything which is part of your application but which must be declared globally can go in this file. For example, if you have data attached to the `Window` object when the page is loaded (for bootstrapping or whatever other reason), this is a good place to declare it.
133133

134-
In the case of applications (but not for addons), we also automatically include declarations for Ember's prototype extensions in this `index.d.ts` file. If you are [disabling Ember's prototype extensions][disabling], you can remove these declarations; we include them because they're enabled in most Ember applications today.
134+
In the case of applications (but not for addons), we also automatically include declarations for Ember's prototype extensions in this `index.d.ts` file, with the `Array` prototype extensions enabled and the `Function` prototype extensions commented out. You should configure them to match your own config (which we cannot check during installation). If you are [disabling Ember's prototype extensions][disabling], you can remove these declarations entirely; we include them because they're enabled in most Ember applications today.
135135

136136
[disabling]: https://guides.emberjs.com/v2.18.0/configuring-ember/disabling-prototype-extensions/
137137

blueprints/ember-cli-typescript/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const path = require('path');
66
const APP_DECLARATIONS = `
77
declare global {
88
interface Array<T> extends Ember.ArrayPrototypeExtensions<T> {}
9-
interface Function extends Ember.FunctionPrototypeExtensions {}
9+
// interface Function extends Ember.FunctionPrototypeExtensions {}
1010
}
1111
`;
1212

0 commit comments

Comments
 (0)