| 4 | import IMask, { type InputMask, type FactoryArg } from 'imask'; |
| 5 | |
| 6 | interface SolidMaskedDirectiveInterface< |
| 7 | Opts extends FactoryArg, |
| 8 | Value = { |
| 9 | typedValue: InputMask<Opts>['typedValue']; |
| 10 | value: InputMask<Opts>['value']; |
| 11 | unmaskedValue: InputMask<Opts>['unmaskedValue']; |
| 12 | } |
| 13 | > { |
| 14 | mask: Opts; |
| 15 | onAccept?: ( |
| 16 | value: Value, |
| 17 | maskRef: InputMask<Opts>, |
| 18 | e?: InputEvent |
| 19 | ) => void; |
| 20 | onComplete?: ( |
| 21 | value: Value, |
| 22 | maskRef: InputMask<Opts>, |
| 23 | e?: InputEvent |
| 24 | ) => void; |
| 25 | value?: () => InputMask<Opts>['value']; |
| 26 | unmaskedValue?: () => InputMask<Opts>['unmaskedValue']; |
| 27 | } |
| 28 | |
| 29 | declare module 'solid-js' { |
| 30 | namespace JSX { |
nothing calls this directly
no outgoing calls
no test coverage detected