According to the documentation by google in this link, https://developers.google.com/identity/oauth2/web/guides/migration-to-gis#gis-only, https://accounts.google.com/gsi/client is now used for auth. But I use typescript in reactjs, is there any @types package for the api that includes oauth2 ?