Thomas Gossmann
14d56932be
Add tests for Ember.addObserver and Ember.removeObserver
2018-05-17 20:02:36 +02:00
Thomas Gossmann
e41d767e63
addListener with 3 or 5 parameters
2018-05-17 20:01:51 +02:00
Thomas Gossmann
38289b5abf
no unnecessary generics
2018-05-17 18:06:54 +02:00
Thomas Gossmann
502c045aef
Overloading add/removeObserver and add/removeListener
2018-05-17 17:37:42 +02:00
Thomas Gossmann
ebb93d17ef
tests for addObserver and removeObserver with optional 3rd parameter
2018-05-16 22:35:16 +02:00
Thomas Gossmann
9abbb97f48
Make third argument of addObserver and removeObserver optional
2018-05-16 17:30:14 +02:00
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
Alex LaFroscia
a85c598a91
Add type exports for additional types
2018-04-03 12:54:07 -07:00
Alex LaFroscia
f48033fba6
Add EmberArray type export to '@ember/array'
2018-04-03 10:27:19 -07:00
Chris Krycho
7fd7362840
Ember: Add test of import from '@ember/error'.
2018-03-26 20:52:18 -06:00
Chris Krycho
8ea26416e7
Ember: Add @ember/error module export.
2018-03-26 20:40:10 -06:00
Derek Wickern
6983d94a0e
ember: mismatched get/set
2018-03-25 19:18:43 -07: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
Daniel Rosenwasser
d86ac40c98
Merge pull request #23684 from chriskrycho/fix-computed-lookups
...
Ember: make `get` unwrap module computed properties.
2018-02-16 19:40:48 -08:00
Tabeth Nkangoh
0b9cb255b9
Update index.d.ts
...
There appears to be a discrepancy between the description in the comments as well as [the documentation](https://www.emberjs.com/api/ember/3.0/classes/MutableArray/methods/removeAt?anchor=removeAt ) and the typing itself. Since we can pass either a single index **or** a start and length, `len` should be an optional parameter (to handle the scenario where you just pass a single index).
2018-02-16 10:29:38 -05:00
Chris Krycho
7be938ddc6
Ember: make get unwrap module computed properties.
2018-02-15 15:39:25 -07:00
Daniel Rosenwasser
b949172739
Merge pull request #23653 from chriskrycho/ember-controller-registry
...
Ember: actually use Controller registry in `controllerFor`.
2018-02-15 13:23:18 -08:00
Daniel Rosenwasser
5d88510ee1
Merge pull request #23629 from chriskrycho/ember-mixin
...
Ember: make `Mixin` exported in namespaced modules a `class`.
2018-02-15 10:58:39 -08:00
Andy Hanson
45c9246c09
Remove esModuleInterop from tsconfigs (no longer mandatory)
2018-02-14 14:55:13 -08:00
Chris Krycho
eb8cdf016c
Ember: actually use Controller registry in controllerFor.
2018-02-14 10:50:23 -07:00
Chris Krycho
9c8c32349e
Ember: make Mixin exported in namespaced modules a class.
2018-02-13 17:28:12 -07:00
Ron Buckton
60f5ee3a3c
Merge pull request #23413 from chriskrycho/ember-type-registries
...
Ember and Ember Data: use type registries
2018-02-10 11:55:41 -08:00
Chris Krycho
7523afa3b9
Fix 2-blank-line problem in Ember.
2018-02-08 09:33:34 -07:00
Chris Krycho
4d8e8d1920
Ember, Ember Data: type registry improvements.
2018-02-08 08:44:07 -07:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs ( #23354 )
2018-02-05 11:01:56 -08:00
Chris Krycho
031e2ad65c
Ember: use type registry from service, controller lookups.
2018-02-04 20:37:13 -07:00
vlascik
ed1e090ecf
Name default exports to help with auto-imports ( #23287 )
2018-01-30 11:50:19 -08:00
Chris Krycho
fa958d3475
Ember: delegate Enumerable method types to Array. ( #23130 )
...
* Ember: delegate `Enumerable` method types to `Array`.
* Ember: drop `NativeArray` overrides.
2018-01-24 10:31:27 -08: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
Bowden Kelly
e745c897a7
Merge pull request #21911 from dwickern/ember-route-mount-options
...
[ember] route mount options
2017-12-06 11:08:25 -08:00
Chris Krycho
ad4f0a18d9
Ember: make lookup options optional
2017-12-05 20:10:13 -07:00
Ignacio Bona Piedrabuena
a946202e81
Fixing route mount and adding tests
2017-12-02 09:10:41 -08:00
Ignacio Bona Piedrabuena
a10336e48d
Adding mount options
2017-12-02 09:10:24 -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
Andy
19f89399e4
Ensure every package has a tslint.json ( #21009 )
...
* Ensure every package has a tslint.json
* Fixes
2017-10-25 11:13:50 -07:00
Andy
7c7d40373f
ember: Fix lint ( #20827 )
2017-10-23 07:35:35 -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
Per Lundberg
d817d67556
Added Ember.computed methods ( #20227 )
...
This PR adds some of the missing definitions from here: https://www.emberjs.com/api/ember/2.15/namespaces/Ember.computed/methods/union?anchor=union
Note: the documentation there suggests that propertyKey is a single parameter, which is incorrect/unclear per the discussion in https://github.com/emberjs/ember.js/pull/14904 . Hence, I added them as ... arguments instead.
2017-10-09 16:17:38 -07:00