Skip to content

View Collections with ID field only returns never #97

@Aragur

Description

@Aragur

Describe the bug
My view collection has only an ID field, as this returns a public count of entries.
This was generated by typegen:

export type MainDataCountResponse<Texpand = unknown> = Required<MainDataCountRecord> & BaseSystemFields<Texpand>;

Accessing the ID field doesn't work with following error:

[{
	"owner": "typescript",
	"code": "2339",
	"severity": 8,
	"message": "Property 'id' does not exist on type 'never'.",
	"source": "ts"
}]

Versions
pocketbase-typegen version: 1.2.1
pocketbase version: 0.21.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions