diff options
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 {}; |
