MCPcopy
hub / github.com/uNmAnNeR/imaskjs / SolidMaskedDirectiveInterface

Interface SolidMaskedDirectiveInterface

packages/solid-imask/src/directive.ts:6–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import IMask, { type InputMask, type FactoryArg } from 'imask';
5
6interface 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
29declare module 'solid-js' {
30 namespace JSX {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected