mirror of
https://github.com/Start9Labs/start-sdk.git
synced 2026-03-26 02:11:56 +00:00
chore: Remove the previousSpec
This commit is contained in:
@@ -633,18 +633,18 @@ export class Value<Type, Store, Vault> {
|
||||
description?: string | null
|
||||
warning?: string | null
|
||||
},
|
||||
previousSpec: Config<Type, Store, Vault>,
|
||||
spec: Config<Type, Store, Vault>,
|
||||
) {
|
||||
return new Value<Type, Store, Vault>(async (options) => {
|
||||
const spec = await previousSpec.build(options as any)
|
||||
const built = await spec.build(options as any)
|
||||
return {
|
||||
type: "object" as const,
|
||||
description: null,
|
||||
warning: null,
|
||||
...a,
|
||||
spec,
|
||||
spec: built,
|
||||
}
|
||||
}, previousSpec.validator)
|
||||
}, spec.validator)
|
||||
}
|
||||
static file<Required extends boolean, Store, Vault>(a: {
|
||||
name: string
|
||||
|
||||
Reference in New Issue
Block a user