chore: remove the subtype, and remove inputtype from number

This commit is contained in:
BluJ
2023-04-03 13:05:15 -06:00
parent 510074530f
commit 0f79f71dd2
3 changed files with 3 additions and 23 deletions

View File

@@ -1,12 +1,6 @@
import { BuilderExtract, IBuilder } from "./builder";
import { Config } from "./config";
import {
InputSpec,
ListValueSpecNumber,
ListValueSpecString,
UniqueBy,
ValueSpecList,
} from "../config-types";
import { InputSpec, ListValueSpecNumber, ListValueSpecString, UniqueBy, ValueSpecList } from "../config-types";
import { guardAll } from "../../util";
/**
* Used as a subtype of Value.list
@@ -77,8 +71,6 @@ export class List<A extends ValueSpecList> extends IBuilder<A> {
range?: string;
units?: string | null;
placeholder?: string | null;
/** Default = 'numeric */
inputmode?: "numeric" | "decimal";
}
) {
const spec = {
@@ -86,7 +78,6 @@ export class List<A extends ValueSpecList> extends IBuilder<A> {
placeholder: null,
range: "(*,*)",
units: null,
inputmode: "numeric" as const,
...aSpec,
};
return new List({