chore: Update the types to be required

This commit is contained in:
BluJ
2023-04-13 13:31:50 -06:00
parent 556b1b03f1
commit cff86718f8
8 changed files with 55 additions and 545 deletions

View File

@@ -1,14 +1,11 @@
import * as matches from "ts-matches";
import { Parser, Validator } from "ts-matches";
import { Variants } from "../config/builder";
import {
InputSpec,
UnionSelectKey,
unionSelectKey,
unionValueKey,
UnionValueKey,
ValueSpec as ValueSpecAny,
} from "../config/configTypes";
} from "../config/configTypesRaw";
import { InputSpecRaw } from "../config/configTypesRaw";
const {
string,
@@ -336,7 +333,7 @@ export function guardAll<A extends ValueSpecAny>(
* @param valueDictionary
* @returns
*/
export function typeFromProps<A extends InputSpec>(
export function typeFromProps<A extends InputSpecRaw>(
valueDictionary: A
): Parser<unknown, TypeFromProps<A>> {
if (!recordString.test(valueDictionary)) return unknown as any;