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