mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #620 from PicnicBasket/master
Compatibility with TS 0.9
This commit is contained in:
@@ -142,7 +142,7 @@ module HttpAndRegularPromiseTests {
|
||||
// Test for AngularJS Syntac
|
||||
|
||||
module My.Namespace {
|
||||
|
||||
export var x; // need to export something for module to kick in
|
||||
}
|
||||
|
||||
// IModule Registering Test
|
||||
@@ -150,7 +150,7 @@ var mod = angular.module('tests',[]);
|
||||
mod.controller('name', function($scope : ng.IScope) {})
|
||||
mod.controller('name', ['$scope', <any>function($scope : ng.IScope) {}])
|
||||
mod.controller(My.Namespace);
|
||||
mod.directive('name', function($scope : ng.IScope) {})
|
||||
mod.directive('name', <any>function ($scope: ng.IScope) {})
|
||||
mod.directive('name', ['$scope', <any>function($scope : ng.IScope) {}])
|
||||
mod.directive(My.Namespace);
|
||||
mod.factory('name', function($scope : ng.IScope) {})
|
||||
|
||||
Vendored
+1
-1
@@ -107,7 +107,7 @@ declare module chai
|
||||
ifError(val:any, msg?:string);
|
||||
}
|
||||
//node module
|
||||
declare var assert:Assert;
|
||||
var assert:Assert;
|
||||
}
|
||||
//browser global
|
||||
declare var assert:chai.Assert;
|
||||
Vendored
+1
-1
@@ -35,7 +35,7 @@ declare module chai {
|
||||
|
||||
interface TypeComparison {
|
||||
(type: string, message?: string): bool;
|
||||
instanceof(type: Object, ): bool;
|
||||
instanceof(type: Object): bool;
|
||||
}
|
||||
|
||||
interface NumericComparison {
|
||||
|
||||
Reference in New Issue
Block a user