astro-pocketbase-loader
Version:
A content loader for Astro that uses the PocketBase API
31 lines (29 loc) • 615 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;
/**
* Date the entry was created.
*/
created?: string | undefined;
/**
* Date the entry was last updated.
*/
updated?: string | undefined;
}
/**
* Type for a PocketBase entry.
*/
export type PocketBaseEntry = PocketBaseBaseEntry & Record<string, unknown>;