diff --git a/node-form/node-form.d.ts b/node-form/node-form.d.ts
index 8c9bc73a8..96fab7001 100644
--- a/node-form/node-form.d.ts
+++ b/node-form/node-form.d.ts
@@ -2,12 +2,18 @@
///
///
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;
- 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 ;
}
\ No newline at end of file