From 550d285a8b663d0a480642f3f38ff1347857cc04 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Tue, 24 Mar 2026 22:02:07 +0000 Subject: adds extended-glob loader --- website/src/loaders/extended-glob.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 website/src/loaders/extended-glob.d.ts (limited to 'website/src/loaders/extended-glob.d.ts') diff --git a/website/src/loaders/extended-glob.d.ts b/website/src/loaders/extended-glob.d.ts new file mode 100644 index 0000000..87a4814 --- /dev/null +++ b/website/src/loaders/extended-glob.d.ts @@ -0,0 +1,18 @@ +/** + * This file is edited from astro/loaders/glob.d.ts + */ + +import type { glob, Loader } from "astro/loaders"; +type GlobOptions = Parameters[0]; +/** + * Loads multiple entries, using a glob pattern to match files. + * @param pattern A glob pattern to match files, relative to the content directory. + * @param ignore Glob patterns to exclude from the matched results. + */ +export declare function extendedGlob( + globOptions: GlobOptions & { + postprocessSlug?: (slug: string) => string; + ignore?: string[]; + }, +): Loader; +export {}; -- cgit v1.2.3