mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 12:21:57 +00:00
chore: Modify the oldspec to do nested as an option
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
unionValueKey,
|
||||
} from "../config/configTypes";
|
||||
import { deepMerge } from "../util";
|
||||
import { InputSpec, matchInputSpec, testListUnion } from "./output";
|
||||
import { InputSpec, matchInputSpec } from "./output";
|
||||
|
||||
export type IfEquals<T, U, Y = unknown, N = never> = (<G>() => G extends T
|
||||
? 1
|
||||
@@ -97,9 +97,6 @@ describe("Inputs", () => {
|
||||
},
|
||||
};
|
||||
|
||||
test("Test just the input unions", () => {
|
||||
testListUnion.validator().unsafeCast(validInput.testListUnion);
|
||||
});
|
||||
test("test valid input", () => {
|
||||
const output = matchInputSpec.unsafeCast(validInput);
|
||||
expect(output).toEqual(validInput);
|
||||
|
||||
Reference in New Issue
Block a user