Understand the generated output structure
mainThe generated pocketbase-types.ts file contains several key entities:
Collections: A constant object mapping PascalCase names to collection IDs, with a companion union type.[CollectionName]Record: A type for each collection (e.g.,ProfilesRecord).[CollectionName]Response: A response type for each collection (e.g.,ProfilesResponse) including system fields.[CollectionName][FieldName]Options: If a collection has aselectfield, a const object and union type of the options are generated.CollectionRecords: A type mapping each collection name to its record type.CollectionResponses: A type mapping each collection name to its response type.TypedPocketBase: A type for use with a type-asserted PocketBase instance.