@serwist/build
Version:
A module that integrates into your build process, helping you generate a manifest of local files that should be precached.
21 lines (17 loc) • 855 B
text/typescript
import { z } from "zod";
import type { OptionalSwDestPartial, OptionalSwDestResolved, RequiredSwDestPartial, RequiredSwDestResolved } from "../types.js";
import { type Equals, assertType } from "./assertType.js";
export const optionalSwDestPartial = z
.object({
swDest: z.string().optional(),
})
.strict("Do not pass invalid properties to OptionalSwDest!");
export const requiredSwDestPartial = z
.object({
swDest: z.string(),
})
.strict("Do not pass invalid properties to RequiredSwDest!");
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>>>();