diff options
| author | Joe Carstairs <me@joeac.net> | 2026-03-24 22:02:07 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-03-24 22:02:07 +0000 |
| commit | 550d285a8b663d0a480642f3f38ff1347857cc04 (patch) | |
| tree | 0227485964915b372b71dc0c466883cdcb0847ce /website/src/loaders/extended-glob.d.ts | |
| parent | 268eff17f19d55056b952b231e5598d91397ac6d (diff) | |
adds extended-glob loader
Diffstat (limited to 'website/src/loaders/extended-glob.d.ts')
| -rw-r--r-- | website/src/loaders/extended-glob.d.ts | 18 |
1 files changed, 18 insertions, 0 deletions
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<typeof glob>[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 {}; |
