UNPKG

@serwist/build

Version:

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

14 lines (11 loc) 626 B
import type { z } from "zod"; import type { GetManifestOptions, GetManifestOptionsComplete } from "../types.js"; import { type Equals, assertType } from "./assertType.js"; import { basePartial } from "./base.js"; import { globPartial, requiredGlobDirectoryPartial } from "./glob.js"; export const getManifestOptions = basePartial .merge(globPartial) .merge(requiredGlobDirectoryPartial) .strict("Do not pass invalid properties to GetManifestOptions!"); assertType<Equals<GetManifestOptions, z.input<typeof getManifestOptions>>>(); assertType<Equals<GetManifestOptionsComplete, z.output<typeof getManifestOptions>>>();