You are reading the documentation for connect v1, which is no longer the latest version. Switch to connect v2
CustomQuery
export type CustomQuery<T extends ParamType = string> = {
[P in T]?: string;
} & {
metadata?: unknown;
};export type CustomQuery<T extends ParamType = string> = {
[P in T]?: string;
} & {
metadata?: unknown;
};