🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
22
node_modules/astro/dist/content/vite-plugin-content-virtual-mod.d.ts
generated
vendored
Normal file
22
node_modules/astro/dist/content/vite-plugin-content-virtual-mod.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/// <reference types="node" />
|
||||
import fsMod from 'node:fs';
|
||||
import type { Plugin } from 'vite';
|
||||
import type { AstroSettings, ContentEntryType } from '../@types/astro.js';
|
||||
import { type ContentPaths } from './utils.js';
|
||||
interface AstroContentVirtualModPluginParams {
|
||||
settings: AstroSettings;
|
||||
}
|
||||
export declare function astroContentVirtualModPlugin({ settings, }: AstroContentVirtualModPluginParams): Plugin;
|
||||
/**
|
||||
* Generate a map from a collection + slug to the local file path.
|
||||
* This is used internally to resolve entry imports when using `getEntry()`.
|
||||
* @see `content-module.template.mjs`
|
||||
*/
|
||||
export declare function getStringifiedLookupMap({ contentPaths, contentEntryConfigByExt, dataEntryExts, root, fs, }: {
|
||||
contentEntryConfigByExt: Map<string, ContentEntryType>;
|
||||
dataEntryExts: string[];
|
||||
contentPaths: Pick<ContentPaths, 'contentDir' | 'config'>;
|
||||
root: URL;
|
||||
fs: typeof fsMod;
|
||||
}): Promise<string>;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue