mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
explicitly define node-form module with export = Validation
This commit is contained in:
Vendored
+9
-9
@@ -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 ;
|
||||
}
|
||||
Reference in New Issue
Block a user