mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 12:21:57 +00:00
chore: Update the types
This commit is contained in:
@@ -113,14 +113,16 @@ describe("values", () => {
|
||||
testOutput<typeof validator._TYPE, Array<"a" | "b">>()(null);
|
||||
});
|
||||
test("object", () => {
|
||||
const value = Value.object({
|
||||
name: "Testing",
|
||||
spec: Config.of({
|
||||
const value = Value.object(
|
||||
{
|
||||
name: "Testing",
|
||||
},
|
||||
Config.of({
|
||||
a: Value.boolean({
|
||||
name: "test",
|
||||
}),
|
||||
}),
|
||||
});
|
||||
})
|
||||
);
|
||||
const validator = value.validator();
|
||||
validator.unsafeCast({ a: true });
|
||||
testOutput<typeof validator._TYPE, { a: boolean }>()(null);
|
||||
|
||||
Reference in New Issue
Block a user