/** * This file was @generated using pocketbase-typegen */ export enum Collections { Pages = "pages", Users = "users", } // Alias types for improved usability export type IsoDateString = string export type RecordIdString = string export type HTMLString = string // System fields export type BaseSystemFields = { id: RecordIdString created: IsoDateString updated: IsoDateString collectionId: string collectionName: Collections expand?: T } export type AuthSystemFields = { email: string emailVisibility: boolean username: string verified: boolean } & BaseSystemFields // Record types for each collection export type PagesRecord = { content?: null | Tcontent title?: string slug?: string } export type UsersRecord = { lastname?: string firstname?: string avatar?: string } // Response types include system fields and match responses from the PocketBase API export type PagesResponse = Required> & BaseSystemFields export type UsersResponse = Required & AuthSystemFields // Types containing all Records and Responses, useful for creating typing helper functions export type CollectionRecords = { pages: PagesRecord users: UsersRecord } export type CollectionResponses = { pages: PagesResponse users: UsersResponse }