fix types

This commit is contained in:
Matt Hill
2026-03-19 13:38:40 -06:00
parent 8fbcf44dec
commit de9a7e4189
3 changed files with 5 additions and 6 deletions

View File

@@ -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'),

View File

@@ -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,

View File

@@ -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'