Commit Graph

88 Commits

Author SHA1 Message Date
Chris Krycho
4b5714e8e9
[@ember/routing] Fix Ember.inject.controller tests. 2019-04-03 08:13:24 -06:00
Wesley Wigham
4d0a8f38cf
Change libaries to rely less on implicit {} in test output (#34336) 2019-03-29 15:28:15 -07:00
Mike North
59c441bc45 [ember] ember-octane decorator types (#33963)
* [@ember/object] types for @action and @computed decorators

* [@ember/service] add support for ember-octane @inject decorator

* [@ember/object] absolute import in tests

* [@ember/controller] controller @inject decorator for ember-octane

* [ember] lint fixes

* [@ember/object] decorators for computed property macros in ember-octane
2019-03-18 08:44:39 -07:00
Mike North
112076b653 [ember] remove dependency on handlebars types 2019-03-01 11:42:23 -08:00
Mike North
fee22b212b fix: add @ember/object notifyPropertyChange 2018-12-12 13:08:54 -08:00
Nathan Shively-Sanders
afd53b56cc Fix unrelated lints 2018-11-20 09:12:00 -08:00
Mike North
0bea293eae
[ember] remove deprecated and private types
Fixes https://github.com/typed-ember/ember-cli-typescript/issues/315
2018-09-25 16:16:20 -07:00
Mike North
20d6cdb189 Merge branch 'master' of github.com:DefinitelyTyped/DefinitelyTyped into ember-runloop 2018-09-24 18:24:16 -07:00
Mike North
961849c7df Merge branch 'master' of github.com:DefinitelyTyped/DefinitelyTyped into ember-runloop 2018-09-24 16:31:02 -07:00
Mike North
3995e0d15e Merge branch 'master' of github.com:DefinitelyTyped/DefinitelyTyped into ember-error 2018-09-24 16:25:55 -07:00
Mike North
466bd2829c [ember] ensure that Ember.run and @ember/runloop variants are equally tested 2018-09-21 23:26:40 -07:00
Mike North
4066620479 [ember] @ember/error as source of types, ember as re-export 2018-09-21 18:09:23 -07:00
Mike North
c1334974a1 [ember] more tests 2018-09-21 10:57:33 -07:00
Mike North
049ea9e2b4 [ember] more tests 2018-09-21 10:54:01 -07:00
Mike North
95429c7cf7 [ember] remove instrumentation tests 2018-09-21 10:51:21 -07:00
Mike North
97ed4c050f [ember] more tests 2018-09-21 10:44:03 -07:00
Mike North
32d17f5bcd [ember] more tests 2018-09-21 10:28:48 -07:00
Mike North
94ea6467bf [ember] sendEvent should return a boolean 2018-09-21 10:20:03 -07:00
Mike North
67c6b11b3a [ember] assert that Ember.ObjectProxy is an ObjectProxy 2018-09-21 10:05:12 -07:00
Mike North
829a304ee6 [ember] regression tests for Ember.* 2018-09-20 23:49:23 -07:00
Mike North
5705bdcd82 Merge branch 'master' of github.com:DefinitelyTyped/DefinitelyTyped into ember-engine 2018-09-20 16:43:42 -07:00
Mike North
8c66241ede [ember] @ember/engine as source of types, ember as re-export 2018-09-20 09:18:14 -07:00
Mike North
52714e61b4 Merge branch 'master' of github.com:DefinitelyTyped/DefinitelyTyped into tslint-enable-rules 2018-09-19 15:30:45 -07:00
Mike North
a56c0aa6ae [ember] consume Observable interface from @ember 2018-09-18 23:44:03 -07:00
Mike North
c794b890ef [ember] restore original mixin test 2018-09-18 23:26:49 -07:00
Mike North
da0e5b5095 [ember] @ember/object as source of types, ember as re-export 2018-09-18 23:26:49 -07:00
Mike North
2dad53eedf [@ember/utils] move types from ember. @ember/utils is now the source of truth 2018-09-18 23:26:48 -07:00
Mike North
e93e4972f1 [ember] TSLint - enable only-arrow-functions rule 2018-09-18 10:49:30 -07:00
Mike North
56c434309f [ember] TSLint - enable no-void-expression rule 2018-09-18 10:37:09 -07:00
Mike North
8671c9d4c6 [ember] TSLint - enable prefer-const rule 2018-09-18 10:31:58 -07:00
Mike North
be8b27cff9 [ember] TSLint - enable ban-types and no-misused-new rules 2018-09-18 10:28:49 -07:00
Mike North
904726d301 [ember] TSLint - enable no-empty-interface rule 2018-09-18 10:23:53 -07:00
Mike North
d49861a134 [ember] remove types for non-public APIs (#28917)
Please fill in this template.

- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

If changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes:
   	- https://www.emberjs.com/api/ember/3.4/modules/@ember%2Fmap
	- https://www.emberjs.com/api/ember/3.4/modules/@ember%2Finstrumentation
	- https://www.emberjs.com/api/ember/3.4/modules/@ember%2Fenumerable
 	- f73d8440d1/packages/%40ember/-internals/utils/lib/make-array.ts (L30)
- [x] Increase the version number in the header if appropriate.
- [x] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.
2018-09-17 00:50:47 -07:00
Mike North
6c340ade74 [ember] relax types around Ember.set & setProperties (#28915)
- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

If changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://www.emberjs.com/api/ember/3.4/functions/@ember%2Fobject/set
- [x] Increase the version number in the header if appropriate.
- [x] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.

---
- Fixes https://github.com/typed-ember/ember-cli-typescript/issues/308
- Workaround due to breaking change https://github.com/Microsoft/TypeScript/issues/26120
- Would much much cleaner w/ a fix for https://github.com/Microsoft/TypeScript/issues/27014
2018-09-17 00:48:34 -07:00
Mike North
e79bb7f390 [@ember/string] Move types from ember (#28922)
* [ember] no longer re-create Handlebars namespace
- Fixes https://github.com/typed-ember/ember-cli-typescript/issues/309

* [ember] move @ember/string types to ember__string
Fixes https://github.com/typed-ember/ember-cli-typescript/issues/294
2018-09-17 00:42:27 -07:00
Mike North
d9c8fecb5f [ember] addObserver, removeObserver should return functions (#28921)
Fixes https://github.com/typed-ember/ember-cli-typescript/issues/290
2018-09-16 15:00:45 -07:00
Mike North
5dc54928ef [ember] refactor @ember/debug types into their own package (#28817)
* [ember] fix: runInDebug should return void
fixes https://github.com/typed-ember/ember-cli-typescript/issues/284

* [ember] tests for DataAdapter and ContainerDebugAdapter

* [ember] more specific observable handlers in tests

* [ember] refactor @ember/debug types into their own package
2018-09-14 09:06:43 -07:00
Mike North
58d0fd4974 [ember] narrow types for Ember.typeOf (#28691)
* [ember] narrow types for Ember.typeOf

* [ember] typeOf without any conditional types

* [ember] fix: typeOf zero-argument case

* [ember] use mapping type for Ember.typeOf
2018-09-13 16:40:15 -07:00
Mike North
8ec73d20ae [ember] refine Ember.assign and Ember.merge types (#28690)
* ember - refine Ember.assign and Ember.merge types

* [ember] merge & assign - more test cases and reasonable type constraints for Mix

* kick CI
2018-09-13 12:48:55 -07:00
Mike North
992b5b5f11 [ember] Refactor some private types into ghost modules (#28735)
* [ember] refactor some private types into ghost modules

* [ember] additional tests for low-level CP and Observable types

* [ember] fix: add tests/core-object
2018-09-13 09:56:56 -07:00
Mike North
b5a595ff4f [ember] @ember/string prototype extensions, additional tests and fixes (#28695)
* [ember] @ember/string prototype extensions, additional tests and fixes

* [ember] @ember/string w/ prototype extensions - test fixes
2018-09-10 18:48:15 -07:00
Mike North
59f25426d5 [ember] refine types for Ember.tryInvoke (#28693)
* [ember] refine types for Ember.tryInvoke

* [ember] tryInvoke as three function heads
2018-09-10 18:47:45 -07:00
Mike North
9e32fc7a79 [@types/ember] - Fix several "empty check" function zero-argument cases (#28686)
* fix: allow Ember.typeOf zero-argument case

Fixes: https://github.com/typed-ember/ember-cli-typescript/issues/260

* fix: remove outdated Ember.String.fmt

Fixes: https://github.com/typed-ember/ember-cli-typescript/issues/280

* fix: allow zero-argument usage of Ember.isBlank, .isEmpty, .isPresent and .isNone

Fixes https://github.com/typed-ember/ember-cli-typescript/issues/258
Fixes https://github.com/typed-ember/ember-cli-typescript/issues/255
Fixes https://github.com/typed-ember/ember-cli-typescript/issues/256
Fixes https://github.com/typed-ember/ember-cli-typescript/issues/254
2018-09-10 14:58:51 -07:00
Mike North
35c62f9a6f [ember] relax Ember.set while we figure out CP unwrapping again (#28734)
* [ember] relax types while we figure out CP unwrapping again (failing test)

* [ember] relax types while we figure out CP unwrapping again
2018-09-10 14:38:45 -07:00
Sana Ajani
244ccf1d3e
Merge pull request #28652 from silver-curve/set-return-type-on-ember-htmlSafe-function
Set return type on ember html safe function
2018-09-07 15:11:57 -07:00
Bryan Crotaz
1d4608d846 fix type check - remove namespace 2018-09-06 19:08:12 +01:00
Bryan Crotaz
08f8d4761b fix whitespace 2018-09-06 19:03:42 +01:00
Bryan Crotaz
4bf2f108f4 add type safety check for htmlSafe 2018-09-06 18:07:18 +01:00
James C. Davis
d268ced4d3
Add Ember Application/Engine#buildInstance() 2018-09-05 16:23:20 -04:00
Mike North
2d10676014
Update create-negative.ts 2018-09-04 12:49:32 -07:00