(cause: ValidationCause)
| 2047 | } |
| 2048 | |
| 2049 | function getErrorMapKey(cause: ValidationCause) { |
| 2050 | switch (cause) { |
| 2051 | case 'submit': |
| 2052 | return 'onSubmit' |
| 2053 | case 'blur': |
| 2054 | return 'onBlur' |
| 2055 | case 'mount': |
| 2056 | return 'onMount' |
| 2057 | case 'server': |
| 2058 | return 'onServer' |
| 2059 | case 'dynamic': |
| 2060 | return 'onDynamic' |
| 2061 | case 'change': |
| 2062 | default: |
| 2063 | return 'onChange' |
| 2064 | } |
| 2065 | } |
no outgoing calls
no test coverage detected