This repository has been archived by the owner on May 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TypeScript declarations to iron-validator-behavior. (#36)
* Generate minimal package.json from bower.json * Update and/or configure type declarations. * Update Boolean annotation to boolean.
- Loading branch information
Showing
6 changed files
with
1,031 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
bower_components* | ||
bower-*.json | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* DO NOT EDIT | ||
* | ||
* This file was automatically generated by | ||
* https://github.com/Polymer/gen-typescript-declarations | ||
* | ||
* To modify these typings, edit the source file(s): | ||
* iron-validator-behavior.html | ||
*/ | ||
|
||
/// <reference path="../polymer/types/polymer.d.ts" /> | ||
/// <reference path="../iron-meta/iron-meta.d.ts" /> | ||
|
||
declare namespace Polymer { | ||
|
||
/** | ||
* Use `Polymer.IronValidatorBehavior` to implement a custom input/form validator. Element | ||
* instances implementing this behavior will be registered for use in elements that implement | ||
* `Polymer.IronValidatableBehavior`. | ||
*/ | ||
interface IronValidatorBehavior { | ||
ready(): void; | ||
|
||
/** | ||
* Implement custom validation logic in this function. | ||
* | ||
* @param values The value to validate. May be any type depending on the validation logic. | ||
* @returns true if `values` is valid. | ||
*/ | ||
validate(values: object|null): boolean; | ||
} | ||
|
||
const IronValidatorBehavior: object; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.