chore: generate
This commit is contained in:
@@ -11,10 +11,9 @@ export type Options = Schema.Schema.Type<typeof Options>
|
|||||||
|
|
||||||
// Spec is the user-config value: either just a plugin identifier, or the identifier plus inline options.
|
// Spec is the user-config value: either just a plugin identifier, or the identifier plus inline options.
|
||||||
// It answers "what should we load?" but says nothing about where that value came from.
|
// It answers "what should we load?" but says nothing about where that value came from.
|
||||||
export const Spec = Schema.Union([
|
export const Spec = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options]))]).pipe(
|
||||||
Schema.String,
|
withStatics((s) => ({ zod: zod(s) })),
|
||||||
Schema.mutable(Schema.Tuple([Schema.String, Options])),
|
)
|
||||||
]).pipe(withStatics((s) => ({ zod: zod(s) })))
|
|
||||||
export type Spec = Schema.Schema.Type<typeof Spec>
|
export type Spec = Schema.Schema.Type<typeof Spec>
|
||||||
|
|
||||||
export type Scope = "global" | "local"
|
export type Scope = "global" | "local"
|
||||||
|
|||||||
Reference in New Issue
Block a user