full site update
This commit is contained in:
8
node_modules/astro/dist/content/data-store.d.ts
generated
vendored
8
node_modules/astro/dist/content/data-store.d.ts
generated
vendored
@@ -31,12 +31,14 @@ export interface DataEntry<TData extends Record<string, unknown> = Record<string
|
||||
*/
|
||||
deferredRender?: boolean;
|
||||
assetImports?: Array<string>;
|
||||
/** @deprecated */
|
||||
legacyId?: string;
|
||||
}
|
||||
/**
|
||||
* A read-only data store for content collections. This is used to retrieve data from the content layer at runtime.
|
||||
* To add or modify data, use {@link MutableDataStore} instead.
|
||||
*/
|
||||
export declare class DataStore {
|
||||
export declare class ImmutableDataStore {
|
||||
protected _collections: Map<string, Map<string, any>>;
|
||||
constructor();
|
||||
get<T = DataEntry>(collectionName: string, key: string): T | undefined;
|
||||
@@ -50,6 +52,6 @@ export declare class DataStore {
|
||||
* Attempts to load a DataStore from the virtual module.
|
||||
* This only works in Vite.
|
||||
*/
|
||||
static fromModule(): Promise<DataStore>;
|
||||
static fromMap(data: Map<string, Map<string, any>>): Promise<DataStore>;
|
||||
static fromModule(): Promise<ImmutableDataStore>;
|
||||
static fromMap(data: Map<string, Map<string, any>>): Promise<ImmutableDataStore>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user