react-hook-core 0.2.8 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/core.js CHANGED
@@ -235,13 +235,6 @@ function getValidateForm(u, vf) {
235
235
  return (u && u.ui ? u.ui.validateForm : undefined);
236
236
  }
237
237
  exports.getValidateForm = getValidateForm;
238
- function getDecodeFromForm(u, d) {
239
- if (d) {
240
- return d;
241
- }
242
- return (u && u.ui ? u.ui.decodeFromForm : undefined);
243
- }
244
- exports.getDecodeFromForm = getDecodeFromForm;
245
238
  function handleToggle(target, on) {
246
239
  if (target) {
247
240
  if (on) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-hook-core",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "react",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/core.ts CHANGED
@@ -239,7 +239,7 @@ export interface ErrorMessage {
239
239
  }
240
240
  export interface UIService {
241
241
  getValue(el: HTMLInputElement, locale?: Locale, currencyCode?: string): string | number | boolean | null | undefined;
242
- decodeFromForm(form: HTMLFormElement, locale?: Locale, currencyCode?: string | null): any;
242
+ // decodeFromForm(form: HTMLFormElement, locale?: Locale, currencyCode?: string | null): any;
243
243
 
244
244
  validateForm(form?: HTMLFormElement, locale?: Locale, focusFirst?: boolean, scroll?: boolean): boolean;
245
245
  removeFormError(form: HTMLFormElement): void;
@@ -494,12 +494,14 @@ export function getValidateForm(u?: UIParameter, vf?: (form: HTMLFormElement, lo
494
494
  }
495
495
  return (u && u.ui ? u.ui.validateForm : undefined);
496
496
  }
497
+ /*
497
498
  export function getDecodeFromForm(u?: UIParameter, d?: (form: HTMLFormElement, locale?: Locale, currencyCode?: string) => any): ((form: HTMLFormElement, locale?: Locale, currencyCode?: string) => any) | undefined {
498
499
  if (d) {
499
500
  return d;
500
501
  }
501
502
  return (u && u.ui ? u.ui.decodeFromForm : undefined);
502
503
  }
504
+ */
503
505
  export function handleToggle(target?: HTMLInputElement, on?: boolean): void {
504
506
  if (target) {
505
507
  if (on) {