UNPKG

@serwist/build

Version:

A module that integrates into your build process, helping you generate a manifest of local files that should be precached.

17 lines (13 loc) 728 B
import { z } from "zod"; import type { OptionalSwDestPartial, OptionalSwDestResolved, RequiredSwDestPartial, RequiredSwDestResolved } from "../types.js"; import { assertType, type Equals } from "./assert-type.js"; export const optionalSwDestPartial = z.strictObject({ swDest: z.string().optional(), }); export const requiredSwDestPartial = z.strictObject({ swDest: z.string(), }); assertType<Equals<OptionalSwDestPartial, z.input<typeof optionalSwDestPartial>>>(); assertType<Equals<OptionalSwDestResolved, z.output<typeof optionalSwDestPartial>>>(); assertType<Equals<RequiredSwDestPartial, z.input<typeof requiredSwDestPartial>>>(); assertType<Equals<RequiredSwDestResolved, z.output<typeof requiredSwDestPartial>>>();