mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
fix types
This commit is contained in:
@@ -247,10 +247,7 @@ export type SmtpSelection =
|
||||
* Zod schema for persisting SMTP selection in a store file model.
|
||||
* Use this instead of `smtpInputSpec.validator` to avoid cross-zod-instance issues.
|
||||
*/
|
||||
export const smtpShape: {
|
||||
parse(data: unknown): SmtpSelection
|
||||
_output: SmtpSelection
|
||||
} = z
|
||||
export const smtpShape: z.ZodType<SmtpSelection> = z
|
||||
.discriminatedUnion('selection', [
|
||||
z.object({
|
||||
selection: z.literal('disabled'),
|
||||
|
||||
@@ -11,7 +11,6 @@ import * as patterns from '../../base/lib/util/patterns'
|
||||
import { Backups } from './backup/Backups'
|
||||
import {
|
||||
smtpInputSpec,
|
||||
smtpShape,
|
||||
systemSmtpSpec,
|
||||
customSmtp,
|
||||
smtpProviderVariants,
|
||||
@@ -409,7 +408,6 @@ export class StartSdk<Manifest extends T.SDKManifest> {
|
||||
},
|
||||
inputSpecConstants: {
|
||||
smtpInputSpec,
|
||||
smtpShape,
|
||||
systemSmtpSpec,
|
||||
customSmtp,
|
||||
smtpProviderVariants,
|
||||
|
||||
@@ -30,6 +30,10 @@ export { SubContainer } from './util/SubContainer'
|
||||
export { StartSdk } from './StartSdk'
|
||||
export { setupManifest, buildManifest } from './manifest/setupManifest'
|
||||
export { FileHelper } from './util/fileHelper'
|
||||
export {
|
||||
smtpShape,
|
||||
type SmtpSelection,
|
||||
} from '../../base/lib/actions/input/inputSpecConstants'
|
||||
|
||||
export * as actions from '../../base/lib/actions'
|
||||
export * as backup from './backup'
|
||||
|
||||
Reference in New Issue
Block a user