Commit Graph

23 Commits

Author SHA1 Message Date
James C. Davis
841c9f9a0b Change allowed return type of Ember helper function to any (#25183) 2018-04-21 10:04:36 +12:00
Chris Krycho
cfa60b7c66 Ember: Make RegistryProxyMixin.register options optional. (#25076)
* Ember: Make `RegistryProxyMixin.register` options optional.

* Add tests for register change.
2018-04-17 18:12:12 -07:00
Abram Booth
302ef7b926 Fix EmberArray.uniqBy typing (#25073) 2018-04-17 18:11:52 -07:00
James C. Davis
a7f56fc5ce Add Ember.CoreObject constructor with initial properties arg (#24997) 2018-04-16 15:24:28 -07:00
Frank Tan
ca3bf7f06d Re-type helper from @ember/component/helper (#24986)
* Re-type `helper` from @ember/component/helper

Previous typing caused an error about using private name `Ember.Helper`
when generating declaration files.

Fortunately, the previous typings were incorrect anyway, so we can
remove the reference to `Ember.Helper` and thus fix the issue.

Relevant links:
* https://github.com/Microsoft/TypeScript/issues/5711
* https://github.com/Microsoft/TypeScript/issues/6307
* https://www.emberjs.com/api/ember/2.18/functions/@ember%2Fcomponent%2Fhelper/helper
* https://github.com/emberjs/ember.js/blob/v2.18.2/packages/ember-glimmer/lib/helper.ts#L120

* Add test for `helper` from @ember/component/helper
2018-04-14 12:09:19 -07:00
Chris Krycho
7fd7362840 Ember: Add test of import from '@ember/error'. 2018-03-26 20:52:18 -06:00
Martin Feckie
148fcdadb0 Allow router service methods without models and add some tests 2018-03-11 18:56:58 +11:00
Chris Krycho
86343740d1 Merge branch 'master' into ember-fix-isEvery 2018-02-26 20:20:11 -07:00
Theron Cross
bd8ace8ec9 Fix Enumerable#isAny second param type (#23827)
* Fix Enumerable#isAny param type

https://emberjs.com/api/ember/3.0/classes/Ember.NativeArray/methods/isAny?anchor=isAny

* Update Enum#isAny and #isEvery params to any
2018-02-26 12:46:41 -08:00
Chris Krycho
f5b80c3221 Ember: isEvery has optional second arg. 2018-02-19 14:32:11 -07:00
Chris Krycho
7be938ddc6 Ember: make get unwrap module computed properties. 2018-02-15 15:39:25 -07:00
Chris Krycho
eb8cdf016c Ember: actually use Controller registry in controllerFor. 2018-02-14 10:50:23 -07:00
Chris Krycho
4d8e8d1920 Ember, Ember Data: type registry improvements. 2018-02-08 08:44:07 -07:00
Chris Krycho
031e2ad65c Ember: use type registry from service, controller lookups. 2018-02-04 20:37:13 -07:00
Derek Wickern
c4e9518121 ember: allow get/set with dynamic key (#22905) 2018-01-17 09:59:14 -08:00
Chris Krycho
8b902e076f Add ember-data error types; Ember.ViewUtils.isSimpleClick. (#22924) 2018-01-17 09:52:29 -08:00
Martin Feckie
6be899ad46 Improve typings for Enumerable (#22523)
* Fix typo Enumberable -> Enumerable

* Set return type to Enumerable of filter, reject etc to support chaining

* findBy value type should be any, not string

* Convert return type for Enumerable to NativeArray<T>
2018-01-03 16:06:45 -08:00
Chris Krycho
99b908fdb8 Revert Prettier-induced spacing, comma changes. 2017-12-28 15:20:20 -07:00
Chris Krycho
572137414c Update Ember, Ember Data, Ember QUnit types. 2017-12-19 16:10:50 -07:00
Ignacio Bona Piedrabuena
a946202e81 Fixing route mount and adding tests 2017-12-02 09:10:41 -08:00
Derek Wickern
d17a9bb823 update ember typings 2017-11-19 09:46:14 -08:00
Andy
ce6f98d353 ember: Fix lint (#21123) 2017-10-30 10:59:00 -07:00
Chris Krycho
dfa4555106 Update Ember, RSVP, and Ember testing helpers. (#20301)
* Update RSVP to 4.0, to implement PromiseLike<T>.

- RSVP Promises can now be used with `async` and `await`.
- RSVP types now match what is in RSVP 4.0.

* Update ember-testing-helpers for fixed RSVP.

* Ember.js: correctly represent most of the framework.

- Capture the actual behavior of most of the framework, including computed
  properties, custom getters and setters and the custom Object model more
  generally, prototype extension via `.extend`, and the mixin pattern.
- Support the new modules API alongside the global API.
- Add extensive tests.
- Update inline documentation.
- Use the new, async/await compatible RSVP definitions.

* Ember/RSVP: drop .prettierrc files.

* Drop types/rsvp/assert.ts -- stick to just rsvp-test.ts.

* Fix ember-testing-helpers-tests on top of module itself.

* Fix RSVP import in ember-testing-helpers.

* Fix 'typeRoots', set ember-testing-helpers to use TS 2.4.

* Fix missing 'types' compiler option.

* Fix errors caught by dtslint.

* A few more tslint tweaks.

* Fix account link in ember-testing-helpers authorship.

* Disable strictFunctionTypes for Ember, RSVP.

* fix array.reduce signature conflict in ts@next
2017-10-13 03:13:17 -07:00