I have just discovered a bug in index.d.ts in
It must by capital A -> findOAuthInfo.
Now I have to use js api 4.10 with old types @firstname.lastname@example.org
Could you fix it, please
Thanks for reporting the issue we'll get the doc (and typings) fixed. When I run into situations like this I create a file in my project called updates.d.ts and 'fix' the typo in that file similar to the instructions outlined here:
That way you can continue to use the 4.10 typings and when the new typings are available you can just delete the update file.
I just want to describe how I overridden the esri's type definition.
1. Create a folder typings/arcgis-js-api
2. Copy type definition file from node_modules/@types/arcgis-js-api/index.d.ts to the new folder (typings/arcgis-js-api)
3. Make changes in the type definitions.
4. Add in tsconfig.json:
5. Restart your project "npm start"