Skip to content

Commit

Permalink
restructured types, added missing type exports.
Browse files Browse the repository at this point in the history
  • Loading branch information
RillingDev committed Nov 8, 2019
1 parent 9759a4f commit eb924d6
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 21 deletions.
3 changes: 2 additions & 1 deletion dist/esm/src/Ok.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Validator } from "./validator/Validator";
import { ValidatorDictionary } from "./validator/ValidatorDictionary";
declare type ValidatorMap = Map<string, Validator>;
/**
* @class
*/
declare const Ok: {
new (validators: ValidatorDictionary, invalidClass?: string | false): {
readonly map: Map<string, Validator>;
readonly map: ValidatorMap;
readonly invalidClass: string | false;
/**
* Validates an input element and returns the validity.
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/src/Ok.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/src/Ok.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/esm/src/main.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { Ok } from "./Ok";
import { Validator } from "./validator/Validator";
import { ValidatorDictionary } from "./validator/ValidatorDictionary";
export { Validator, ValidatorDictionary };
export default Ok;
//# sourceMappingURL=main.d.ts.map
2 changes: 1 addition & 1 deletion dist/esm/src/main.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/src/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions dist/esm/src/validator/ValidatorMap.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/esm/src/validator/ValidatorMap.d.ts.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/esm/src/validator/ValidatorMap.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/esm/src/validator/ValidatorMap.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion docs/Ok.html
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ <h5>Returns:</h5>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Oct 18 2019 21:22:50 GMT+0200 (Central European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Nov 08 2019 20:01:56 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ <h2>Legacy Browsers</h2>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Oct 18 2019 21:22:50 GMT+0200 (Central European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Nov 08 2019 20:01:56 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/ok.common.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ <h1 class="page-title">ok.common.js</h1>
<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Oct 18 2019 21:22:50 GMT+0200 (Central European Summer Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Nov 08 2019 20:01:56 GMT+0100 (Central European Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
</footer>

<script>prettyPrint();</script>
Expand Down
3 changes: 2 additions & 1 deletion src/Ok.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import { isFunction, mapFromObject } from "lightdash";
import { getInputElementValue } from "./dom/getInputElementValue";
import { Validator } from "./validator/Validator";
import { ValidatorDictionary } from "./validator/ValidatorDictionary";
import { ValidatorMap } from "./validator/ValidatorMap";
import { setCustomValidity } from "./dom/setCustomValidity";

type ValidatorMap = Map<string, Validator>;

/**
* @class
*/
Expand Down
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { Ok } from "./Ok";
import { Validator } from "./validator/Validator";
import { ValidatorDictionary } from "./validator/ValidatorDictionary";

export { Validator, ValidatorDictionary };
export default Ok;
5 changes: 0 additions & 5 deletions src/validator/ValidatorMap.ts

This file was deleted.

0 comments on commit eb924d6

Please sign in to comment.