explicitly define node-form module with export = Validation

This commit is contained in:
rsamec
2014-07-28 08:47:12 +02:00
parent 9084225d44
commit 76781c4c85
+9 -9
View File
@@ -2,12 +2,18 @@
/// <reference path="../q/Q.d.ts" />
/// <reference path="../moment/moment.d.ts" />
declare module Validation {
/**
* Custom message functions.
*/
interface IErrorCustomMessage {
(config: any, args: any): string;
}
/**
* It represents a property validator for atomic object.
*/
interface IPropertyValidator {
isAcceptable(s: any): boolean;
customMessage? (config: any, args: any): string;
customMessage?: IErrorCustomMessage;
tagName?: string;
}
/**
@@ -21,7 +27,7 @@ declare module Validation {
*/
interface IAsyncPropertyValidator {
isAcceptable(s: any): Q.Promise<boolean>;
customMessage? (config: any, args: any): string;
customMessage?: IErrorCustomMessage;
isAsync: boolean;
tagName?: string;
}
@@ -158,12 +164,6 @@ declare module Validation {
TranslateArgs?: IErrorTranslateArgs;
}
/**
* Custom message functions.
*/
interface IErrorCustomMessage {
(config: any, args: any): string;
}
/**
* support for localization of error messages
*/
interface IErrorTranslateArgs {
@@ -690,5 +690,5 @@ declare module Validation {
}
}
declare module "node-form" {
export = Validation ;
export = Validation ;
}