astro-loader-pocketbase
Version:
A content loader for Astro that uses the PocketBase API
23 lines (21 loc) • 426 B
text/typescript
/**
* Base interface for all PocketBase entries.
*/
interface PocketBaseBaseEntry {
/**
* ID of the entry.
*/
id: string;
/**
* ID of the collection the entry belongs to.
*/
collectionId: string;
/**
* Name of the collection the entry belongs to.
*/
collectionName: string;
}
/**
* Type for a PocketBase entry.
*/
export type PocketBaseEntry = PocketBaseBaseEntry & Record<string, unknown>;