Commit Graph

508 Commits

Author SHA1 Message Date
SquadWuschel
d4d4286f7a Changed Promise to IPromise
The current TypeDefinition with Promise was not working any more, can't find the Promise its needed to be renamed to IPromise.
2016-03-28 11:45:19 +02:00
Masahiro Wakame
18b09b6f86 Merge pull request #8676 from FreakenK/master
Add angular-mocks $componentController typings.
2016-03-26 21:49:52 +09:00
Jasmin Auger
ce7496396f Add tests for angular-mocks' typings. 2016-03-21 21:25:58 -04:00
Jasmin Auger
1cced363c0 Add angular-mocks typings. 2016-03-21 21:13:50 -04:00
Thanabodee Charoenpiriyakij
5256422ee7 angularjs: Support HttpParamSerializer interface 2016-03-20 15:19:37 +07:00
Sebastien
36f1d8d82f Updated to improve IComponentOptions 2016-03-18 11:21:30 +01:00
Sebastien
742354b669 Merge remote-tracking branch 'upstream/master' 2016-03-18 08:28:41 +01:00
vvakame
7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
thorn0
18c25bcac5 angularjs: fix typings for $q.all(array) 2016-03-15 02:54:37 +02:00
Sebastien
b2da5285ff Updated angularjs IComponentOptions (fixes #8515) 2016-03-12 02:49:58 +01:00
Masahiro Wakame
3cccf14497 Merge pull request #8445 from Burgov/angularcontrollerservice
fix ControllerService arguments
2016-03-11 00:38:52 +09:00
Masahiro Wakame
320639ffbb Merge pull request #8429 from ashwin027/missingoption
Added missing property
2016-03-11 00:06:25 +09:00
Masahiro Wakame
58f6485525 Merge pull request #8428 from ashwin027/angularfix
Added an interface for IModelOptions.
2016-03-11 00:05:29 +09:00
Masahiro Wakame
046b3cf669 Merge pull request #8419 from DavidKDeutsch/angular
Making return types of  $on and  $watch more specific
2016-03-10 23:14:41 +09:00
Masahiro Wakame
8a88c85be0 Merge pull request #8150 from mmiszy/angular
Update AngularJS to 1.5
2016-03-10 22:26:45 +09:00
Bart van den Burg
69d2fb94a9 fix ControllerService arguments
See https://github.com/angular/angular.js/blob/v1.5.0-beta.0/src/ng/controller.js#L86
2016-03-08 18:13:20 +01:00
Ashwin
1c4a98f368 Added missing property
Added missing property in the IFormController interface
2016-03-07 23:29:19 -07:00
Ashwin
9864cb1709 Added an interface for IModelOptions.
Added an interface for IModelOptions.
2016-03-07 23:18:27 -07:00
David Deutsch
f5a9c4bd4c Making return types of $on() and $watch() more specific 2016-03-07 10:47:18 -05:00
Masahiro Wakame
632d66bb4d Merge pull request #8372 from kant2002/patch-2
Specify interface for the resource methods
2016-03-04 22:53:12 +09:00
Andrey Kurdyumov
63addbc966 Specify interface for the resource methods
This allows remove redundancy when specify other methods for the resource
2016-03-04 01:06:31 +06:00
Matthew Hill
c2ae01b0b4 adds strictDi to angular.auto.IInjectorService 2016-03-02 14:37:48 +00:00
John Reilly
49a2473350 Update angular.d.ts
Added JSDoc for documented service methods
2016-03-01 13:52:51 +00:00
Michal Miszczyszyn
65347efe70 Update AngularJS to 1.5 2016-02-20 21:54:16 +01:00
Masahiro Wakame
9c6c494692 Merge pull request #8036 from alextkachman/master
angular.IRoute.controller can be defined as array
2016-02-17 20:54:35 +09:00
vvakame
4de74cb527 normalize line ending (CRLF -> LF) 2016-02-16 01:20:30 +09:00
Masahiro Wakame
148cdb0434 Merge pull request #8006 from hheexx/master
Fixes typing for 1.5.0 components and tightens typings for directives
2016-02-15 22:58:46 +09:00
Boris Prpic
1c4a34873c Component controller can be array
angular.module(.....).component("componentName", {
  controller: ["$rootScope",function($rootScope) {
}],
  template: ....
}
2016-02-13 21:54:57 +01:00
Boris Prpic
7677a9f3aa Update angular.d.ts 2016-02-13 02:30:12 +01:00
Ugaitz Urien
ea3fcdda9e Controller field in a component can accept string, function or an array with parameters an function ["service1","service2", ControllerFunction] 2016-02-11 16:03:23 +01:00
Alex Tkachman
80c19345b8 angular.IRoute.controller can be defined as array 2016-02-11 10:14:09 +02:00
vvakame
9027703c0b pass npm run all in new definition-tester 2016-02-10 00:16:03 +09:00
Boris Prpic
f8e2d6025e Fixes require again 2016-02-08 00:04:14 +01:00
Boris Prpic
119c65b311 Fixed require
In component require works different from directive.
Now its Object
2016-02-08 00:00:17 +01:00
Boris Prpic
7b8b362742 Updates IComponentOptions for angular 1.5 components
As per https://docs.angularjs.org/guide/component

components does not support restrict or isolate but they do require
2016-02-07 21:11:51 +01:00
Masahiro Wakame
17ef404520 Merge pull request #7967 from jarnova/master
modified IDeferred resolve method to allow passing a promise of type …
2016-02-07 01:44:34 +09:00
Jarno Välkki
94095ef4ee modified IDeferred resolve method to allow passing a promise of type T so a deferred can be resolved with a promise 2016-02-04 16:01:35 +02:00
romiem
c6ab786741 Update angular.d.ts
If splitting the config into seperate files, this constructor overload is useful. For example, you might need a RoutesConfig.ts file.

#### Example

##### RoutesConfig.ts
```
export class RoutesConfig {

    static $inject = ['$stateProvider', '$urlRouterProvider', '$locationProvider'];
    
    constructor (private $stateProvider: angular.ui.IStateProvider, private $urlRouterProvider: angular.ui.IUrlRouterProvider, private $locationProvider: ng.ILocationProvider) {
        
        // Unmatched URLs, redirect to root
        $urlRouterProvider.otherwise('/block');
        
        $stateProvider
            .state('home', {
                url: '/',
                template: '<route-home></route-home>'
            });
         
        $locationProvider.html5Mode(true);        
    }
}
```

##### Main.ts
```
import {RoutesConfig} from './common/RoutesConfig';
angular.module('myApp', [])
    .config(RoutesConfig)
```
2016-02-02 16:22:59 +00:00
Masahiro Wakame
2dd31c6a7c Merge pull request #7680 from RafaelMalgor/master
Inline annotated function support added to service method on IProvideService
2016-01-24 00:25:40 +09:00
unknown
3bebbe1bae Inline annotated function support added to service method on IProvideService\ 2016-01-18 16:32:28 -03:00
David Reher
046e0e85d0 accidently copied the default value :/ 2016-01-15 22:52:08 +01:00
David Reher
a71a912ada added missing properties to Instruction interface in angular-component-router 2016-01-15 22:38:55 +01:00
David Reher
739b784dae Merge remote-tracking branch 'upstream/master' into angular-component-router
Conflicts:
	angularjs/angular.d.ts
2015-12-30 11:54:44 +01:00
David Reher
f7e1375583 added controller interfaces and test file 2015-12-23 13:11:57 +01:00
David Reher
fa3a82e87f AngularJS: add initial support for component router 2015-12-23 12:58:14 +01:00
Tushar Sonawane
f3eb60e55a updating angular.component type as per doc 2015-12-23 15:47:37 +05:30
Masahiro Wakame
40a4a39840 Merge pull request #7222 from andrejunges/master
Add support to .component from Angularjs 1.5
2015-12-23 15:27:03 +09:00
Masahiro Wakame
621f12c660 Merge pull request #7206 from martinmcwhorter/master
Add commonJS support to angular-resource <eom>
2015-12-23 15:11:58 +09:00