UNPKG

@serwist/build

Version:

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

15 lines (12 loc) 591 B
import { z } from "zod"; import type { GetManifestOptions, GetManifestOptionsComplete } from "../types.js"; import { assertType, type Equals } from "./assert-type.js"; import { basePartial } from "./base.js"; import { globPartial, requiredGlobDirectoryPartial } from "./glob.js"; export const getManifestOptions = z.strictObject({ ...basePartial.shape, ...globPartial.shape, ...requiredGlobDirectoryPartial.shape, }); assertType<Equals<GetManifestOptions, z.input<typeof getManifestOptions>>>(); assertType<Equals<GetManifestOptionsComplete, z.output<typeof getManifestOptions>>>();