1
+ // Generated by dts-bundle-generator v7.2.0
2
+
1
3
import { AccessKeyed , AccessMember , AccessScope , Binary , Binding , BindingBehavior , CallMember , Conditional , Expression , LiteralPrimitive , LiteralString , Parser , Scope , ValueConverter } from 'aurelia-binding' ;
2
4
import { Container , Lazy } from 'aurelia-dependency-injection' ;
3
5
import { DOM } from 'aurelia-pal' ;
@@ -86,7 +88,7 @@ export declare enum validateTrigger {
86
88
*/
87
89
changeOrFocusout = 6
88
90
}
89
- export declare type ValidatorCtor = new ( ...args : any [ ] ) => Validator ;
91
+ export type ValidatorCtor = new ( ...args : any [ ] ) => Validator ;
90
92
/**
91
93
* Aurelia Validation Configuration API
92
94
*/
@@ -155,7 +157,7 @@ export declare function getPropertyInfo(expression: Expression, source: Scope):
155
157
object : object ;
156
158
propertyName : string ;
157
159
} | null ;
158
- export declare type PropertyAccessor < TObject , TValue > = ( object : TObject ) => TValue ;
160
+ export type PropertyAccessor < TObject , TValue > = ( object : TObject ) => TValue ;
159
161
export declare class PropertyAccessorParser {
160
162
private parser ;
161
163
static inject : ( typeof Parser ) [ ] ;
@@ -183,7 +185,7 @@ export interface RenderInstruction {
183
185
/**
184
186
* The "kind" of render instruction. Either 'validate' or 'reset'.
185
187
*/
186
- kind : ' validate' | ' reset' ;
188
+ kind : " validate" | " reset" ;
187
189
/**
188
190
* The results to render.
189
191
*/
@@ -208,7 +210,7 @@ export declare class ValidateEvent {
208
210
/**
209
211
* The type of validate event. Either "validate" or "reset".
210
212
*/
211
- readonly type : ' validate' | ' reset' ;
213
+ readonly type : " validate" | " reset" ;
212
214
/**
213
215
* The controller's current array of errors. For an array containing both
214
216
* failed rules and passed rules, use the "results" property.
@@ -237,7 +239,7 @@ export declare class ValidateEvent {
237
239
/**
238
240
* The type of validate event. Either "validate" or "reset".
239
241
*/
240
- type : ' validate' | ' reset' ,
242
+ type : " validate" | " reset" ,
241
243
/**
242
244
* The controller's current array of errors. For an array containing both
243
245
* failed rules and passed rules, use the "results" property.
@@ -385,6 +387,26 @@ export declare class ValidationController {
385
387
revalidateErrors ( ) : void ;
386
388
private invokeCallbacks ;
387
389
}
390
+ /**
391
+ * Information related to an "& validate" decorated binding.
392
+ */
393
+ export interface BindingInfo {
394
+ /**
395
+ * The DOM element associated with the binding.
396
+ */
397
+ target : Element ;
398
+ /**
399
+ * The rules associated with the binding via the validate binding behavior's rules parameter.
400
+ */
401
+ rules ?: any ;
402
+ /**
403
+ * The object and property associated with the binding.
404
+ */
405
+ propertyInfo : {
406
+ object : any ;
407
+ propertyName : string ;
408
+ } | null ;
409
+ }
388
410
declare abstract class ValidateBindingBehaviorBase {
389
411
private taskQueue ;
390
412
constructor ( taskQueue : TaskQueue ) ;
@@ -468,7 +490,10 @@ export interface RenderedError {
468
490
export declare class ValidationErrorsCustomAttribute implements ValidationRenderer {
469
491
private boundaryElement ;
470
492
private controllerAccessor ;
471
- static inject ( ) : [ typeof DOM . Element , Lazy < ValidationController > ] ;
493
+ static inject ( ) : [
494
+ typeof DOM . Element ,
495
+ Lazy < ValidationController >
496
+ ] ;
472
497
controller : ValidationController | null ;
473
498
errors : RenderedError [ ] ;
474
499
private errorsInternal ;
@@ -488,7 +513,7 @@ export declare class ValidationRendererCustomAttribute {
488
513
bind ( ) : void ;
489
514
unbind ( ) : void ;
490
515
}
491
- export declare type ValidationDisplayNameAccessor = ( ) => string ;
516
+ export type ValidationDisplayNameAccessor = ( ) => string ;
492
517
/**
493
518
* Information related to a property that is the subject of validation.
494
519
*/
@@ -949,4 +974,6 @@ export interface Parsers {
949
974
export declare function configure ( frameworkConfig : {
950
975
container : Container ;
951
976
globalResources ?: ( ...resources : any [ ] ) => any ;
952
- } , callback ?: ( config : GlobalValidationConfiguration ) => void ) : void ;
977
+ } , callback ?: ( config : GlobalValidationConfiguration ) => void ) : void ;
978
+
979
+ export { } ;
0 commit comments