mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-30 20:24:47 +00:00
chore: Update the config converts
This commit is contained in:
@@ -333,18 +333,17 @@ describe("Builder List", () => {
|
||||
validator.unsafeCast(["test", "text"])
|
||||
testOutput<typeof validator._TYPE, string[]>()(null)
|
||||
})
|
||||
test("number", () => {
|
||||
const value = Value.list(
|
||||
List.number(
|
||||
{
|
||||
name: "test",
|
||||
},
|
||||
{ integer: true },
|
||||
),
|
||||
)
|
||||
const validator = value.validator()
|
||||
validator.unsafeCast([12, 45])
|
||||
testOutput<typeof validator._TYPE, number[]>()(null)
|
||||
Value.multiselect({
|
||||
name: "Media Sources",
|
||||
minLength: null,
|
||||
maxLength: null,
|
||||
default: ["nextcloud"],
|
||||
description: "List of Media Sources to use with Jellyfin",
|
||||
warning: null,
|
||||
values: {
|
||||
nextcloud: "NextCloud",
|
||||
filebrowser: "File Browser",
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user