diff --git a/.changeset/quiet-waves-tell.md b/.changeset/quiet-waves-tell.md new file mode 100644 index 0000000..98766c1 --- /dev/null +++ b/.changeset/quiet-waves-tell.md @@ -0,0 +1,5 @@ +--- +"@gw2api/types": patch +--- + +Fix `/v2/guild/upgrades` being matched as `/v2/guild/:id/` diff --git a/packages/types/endpoints.ts b/packages/types/endpoints.ts index 3720eaf..88184c3 100644 --- a/packages/types/endpoints.ts +++ b/packages/types/endpoints.ts @@ -354,6 +354,7 @@ export type AuthenticatedOptions = { } export type OptionsByEndpoint = + Endpoint extends BulkExpandedEndpointUrl ? Options & LocalizedOptions : Endpoint extends BulkExpandedEndpointUrl ? Options & AuthenticatedOptions & LocalizedOptions : Endpoint extends BulkExpandedEndpointUrl ? Options & LocalizedOptions : Endpoint extends BulkExpandedEndpointUrl ? Options & AuthenticatedOptions :