You are reading the documentation for v7.x and earlier, which is no longer the latest version. Switch to v8.x
getConsent
Alias for getConsentTemplate method.
getConsent: typeof getConsentTemplateAlias for getConsentTemplate method.
getConsent: typeof getConsentTemplate