chore: Add tests and fix tests. Remove validation for types not seeable

This commit is contained in:
BluJ
2023-04-20 14:25:36 -06:00
parent 6ac6c215c3
commit 45dc591ad0
13 changed files with 115 additions and 223 deletions

View File

@@ -41,7 +41,7 @@ export class List<A extends ValueSpecList> extends IBuilder<A> {
maxLength?: number | null;
patterns: Pattern[];
/** Default = "text" */
inputmode?: ListValueSpecText["inputmode"];
inputMode?: ListValueSpecText["inputMode"];
},
) {
const spec = {
@@ -50,7 +50,7 @@ export class List<A extends ValueSpecList> extends IBuilder<A> {
minLength: null,
maxLength: null,
masked: false,
inputmode: "text" as const,
inputMode: "text" as const,
...aSpec,
};
return new List({