mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
replace internal module to namespace
This commit is contained in:
Vendored
+4
-4
@@ -13,7 +13,7 @@ declare module 'angular-resource' {
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// ngResource module (angular-resource.js)
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
declare module angular.resource {
|
||||
declare namespace angular.resource {
|
||||
|
||||
/**
|
||||
* Currently supported options for the $resource factory options argument.
|
||||
@@ -74,7 +74,7 @@ declare module angular.resource {
|
||||
responseType?: string;
|
||||
interceptor?: IHttpInterceptor;
|
||||
}
|
||||
|
||||
|
||||
// Allow specify more resource methods
|
||||
// No need to add duplicates for all four overloads.
|
||||
interface IResourceMethod<T> {
|
||||
@@ -84,7 +84,7 @@ declare module angular.resource {
|
||||
(params: Object, success: Function, error?: Function): T;
|
||||
(params: Object, data: Object, success?: Function, error?: Function): T;
|
||||
}
|
||||
|
||||
|
||||
// Allow specify resource moethod which returns the array
|
||||
// No need to add duplicates for all four overloads.
|
||||
interface IResourceArrayMethod<T> {
|
||||
@@ -182,7 +182,7 @@ declare module angular.resource {
|
||||
}
|
||||
|
||||
/** extensions to base ng based on using angular-resource */
|
||||
declare module angular {
|
||||
declare namespace angular {
|
||||
|
||||
interface IModule {
|
||||
/** creating a resource service factory */
|
||||
|
||||
Reference in New Issue
Block a user