Commit Graph

263 Commits

Author SHA1 Message Date
Adi Dahiya
23fa2dbebe Fix angular IAttributes#$normalize() definition 2015-10-06 13:08:22 -04:00
Masahiro Wakame
8c7a7d07c9 Merge pull request #6048 from marcogrcr/fix-angular-promises
Fixed angularjs promises then signature.
2015-10-06 23:26:42 +09:00
Masahiro Wakame
7ed11dd40a Merge pull request #6164 from thorn0/angular.bootstrap
AngularJS: support calling angular.bootstrap on the document
2015-10-06 23:24:06 +09:00
thorn0
308f2c22ba AngularJS: support calling angular.bootstrap on the document 2015-10-06 15:47:35 +03:00
vvakame
fd5384af52 Merge branch 'angular.bootstrap' of https://github.com/thorn0/DefinitelyTyped into thorn0-angular.bootstrap 2015-10-06 21:25:02 +09:00
vvakame
e9d73404c1 Merge branch 'angularjs-filter-service' of https://github.com/use-strict/DefinitelyTyped into use-strict-angularjs-filter-service 2015-10-06 21:18:48 +09:00
Masahiro Wakame
8d944280d5 Merge pull request #6037 from eugenpodaru/master
Fix to IFilterPredicateFunc<T>
2015-10-06 21:11:09 +09:00
Marco Gonzalez
419ee258a9 Merge branch 'master' into fix-angular-promises
Conflicts:
	angularjs/angular-tests.ts
2015-10-05 11:10:36 -06:00
Masahiro Wakame
bd1a814ded Merge pull request #6049 from marcogrcr/add-qservice-when-method
Added resolve method to angular.IQService.
2015-10-06 01:49:04 +09:00
thorn0
1137ef6d10 AngularJS: Fix the signature for angular.bootstrap
see https://code.angularjs.org/1.4.0/docs/api/ng/function/angular.bootstrap
2015-10-01 23:41:36 +03:00
Marco Gonzalez
fe917d27e9 Added resolve method to angular.IQService. 2015-09-28 21:00:52 -06:00
Marco Gonzalez
43e1df30c9 Fixed angularjs promises then signature. 2015-09-28 20:02:56 -06:00
Eugen Podaru
8b88d55ef1 Changed IFilterPredicateFunc<T> to return boolean instead of T[] as per angular docs (https://docs.angularjs.org/api/ng/filter/filter) 2015-09-28 15:13:49 +02:00
Shahar Talmi
ac1292d9fc Add missing literal/constant properties in ICompiledExpression
As documented in https://docs.angularjs.org/api/ng/service/$parse
2015-09-28 01:34:30 +03:00
Masahiro Wakame
9128dfc748 Merge pull request #5669 from use-strict/master
angular.d.ts - type safety for $controller
2015-09-27 12:19:09 +09:00
Ciuca, Alexandru
21c2982f94 angularjs - fix signatures for filter service 2015-09-22 14:21:29 +03:00
Ciuca, Alexandru
e09aee6389 Merge remote-tracking branch 'upstream/master' 2015-09-22 10:36:20 +03:00
unknown
8302f8f839 Remove IAnimateService in angular.d.ts 2015-09-21 08:56:07 +05:00
Vyacheslav Mostovoy
c28d8e3fa2 change IAnimateService methods signature 2015-09-20 10:20:30 +05:00
Masahiro Wakame
062cd11410 Merge pull request #5814 from use-strict/angularjs-filter-service
angularjs - better granularity for filter service parameter types
2015-09-20 14:06:27 +09:00
Ciuca, Alexandru
168a3b38ba Merge remote-tracking branch 'upstream/master' 2015-09-17 19:45:25 +03:00
Masahiro Wakame
3ea893c6ba Merge pull request #5436 from billccn/master
Completely typed AngularJS $http.
2015-09-16 22:11:35 +09:00
Ciuca, Alexandru
d0a264d5ff angularjs - better granularity for filter service parameter types 2015-09-14 17:12:44 +03:00
Bill Chen
a42706711d Completely typed AngularJS $http.
Merged the defaults, added missing typings and refined others.
2015-09-09 10:30:28 +01:00
Daniel
79dfea3815 IInjectorService.get has an optional 2nd param.
`caller` is an optional string to provide the origin of the function call for error messages. https://docs.angularjs.org/api/auto/service/$injector#get
2015-09-08 22:45:18 -04:00
Ciuca, Alexandru
1a61d12d8d angular.d.ts - type safety for $controller 2015-09-03 15:56:47 +03:00
Michael Wittwer
32f803ab65 add new method on $httpProvider to define which kind of Promises we like to use (normal vs. decorated with sucess / error) 2015-09-01 11:41:51 +02:00
Masahiro Wakame
f559d0cbfc Merge pull request #5536 from deadalusai/fix-finally-signature
angularjs: Fix the finally method type signature
2015-08-26 02:12:08 +09:00
Benjamin Fox
fd7399b3fd Fix the finally method type signature
The finally method does not change the type of the returned promise -
instead the original promise value is passed through unchanged.
2015-08-25 09:58:04 +12:00
Ilya Mochalov
111be145ae angularjs: changed $q signature 2015-08-25 02:24:01 +05:00
Ilya Mochalov
7652914a5b angularjs: changed $timeout signature, added tests 2015-08-20 01:40:24 +05:00
Ilya Mochalov
fcc892bba5 angularjs: changed $q.all() (added a type variable and tests) 2015-08-07 23:36:27 +05:00
Alexandru Ciuca
66135fcdb6 angular.d.ts - Reverted window and browser services to any 2015-08-06 08:13:50 +03:00
Ciuca, Alexandru
75e813a5d8 angular.d.ts - Reverted controller definition in IDirective to any. 2015-08-05 10:57:40 +03:00
Ciuca, Alexandru
d2c8f8b955 Merge branch 'master' into angular-remove-any 2015-08-04 17:16:34 +03:00
Ciuca, Alexandru
3e2a590f8f angularjs - Switched any to generics for type safety.
See https://github.com/Microsoft/TypeScript/issues/4126
2015-08-04 10:57:41 +03:00
Ben Tesser
d945844367 Angularjs: Add bind-to-controller to IControllerService 2015-08-04 00:21:01 -04:00
Nicolas Penin
8e1d9f0f30 Update angular.d.ts
added getters to ISCEDelegate
2015-08-03 10:57:23 +02:00
Basarat Ali Syed
855569dbc8 Merge pull request #5101 from use-strict/master
angularjs/angular.d.ts - Type safety for $watch and $watchCollection
2015-07-29 11:11:49 +10:00
use-strict
35527887e2 Fixed missing generic constraint 2015-07-28 14:14:29 +03:00
use-strict
ac85b43a1c Type safety for $watch and $watchCollection
Added generic constraint to watched values, replacing "any". Using "any" looses type safety. The type should be inferred from the return type of the watching function, or given explicitly when using a watch expression.
2015-07-28 14:05:20 +03:00
Sam Noedel
c713b75654 Add optional strict DI parameter to angular.injector 2015-07-24 15:45:56 -07:00
Tomasz Ducin
2c389556cc angular.js bugfix - interface ILogProvider extends IServiceProvider (missing .$get method)
There is a [`$logProvider`](https://docs.angularjs.org/api/ng/provider/$logProvider) in angular, here are the relevant source lines: https://github.com/angular/angular.js/blob/master/src/ng/log.js#L47-L67. It contains `.$get` method.

in Denifitely Typed, there is only:

```
    interface ILogProvider {
        debugEnabled(): boolean;
        debugEnabled(enabled: boolean): ILogProvider;
    }
```

(https://github.com/borisyankov/DefinitelyTyped/blob/master/angularjs/angular.d.ts#L865-L868). Note, there is no `.$get` method. THe interface should have extended ``IServiceProvider , i.e. `interface ILogProvider extends IServiceProvider`.
2015-07-22 10:36:59 +02:00
Masahiro Wakame
d95ef5b4e8 Merge pull request #4665 from CodySchaaf/adding-angular-animateCss
Adds angular-animateCss definitions
2015-07-13 23:44:40 +09:00
Masahiro Wakame
ae1d6f30b1 Merge pull request #4878 from stephenlautier/master
angularjs - Added $normalize to IAttributes
2015-07-13 21:57:43 +09:00
unknown
146e3fbff1 angularjs - Added $normalize to IAttributes 2015-07-09 12:01:43 +02:00
CodySchaaf
48daae6584 Adds angular-animateCss definitions
Re-adds deprecated ICookieStoreService since it can
still be used...for now.
Allow validators viewValue be an object, not just string.
2015-07-07 10:49:19 -07:00
James Keller
12a6d207e4 angular's $anchorScroll can be called with an optional has parameter ~ see https://code.angularjs.org/1.4.1/docs/api/ng/service/$anchorScroll 2015-07-01 22:42:50 -06:00
Vilmos Ioo
a4619c4555 Changed to correct type 2015-06-26 14:31:10 -04:00
Vilmos Ioo
04c84eece2 IHttpProviderDefaults should have a cache property
The defaults of angular's $httpProvider have a cache property. https://docs.angularjs.org/api/ng/provider/$httpProvider#defaults
2015-06-26 14:22:43 -04:00