You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This whole module currently does not compile without the "dom" library, which should be avoided, you can import the fetch types from somewhere else alone without importing all the declarations from the dom. see ( Using /// in a .d.ts typescript declaration file has global effects microsoft/TypeScript#33901 )
Fetch as a global object as a requirement to run a library seems prone to errors.
For backward compatibility It would not be hard to add in the library a 'fetchObject' option, and if that isn't set, you try the global fetch, and if that doesn't exist, throw an error, instead of failing midway.
I have run into issues since our linters are not catching the non-existing global objects on a NodeJs application, and some Storage one had sneaked in for months. Trying to remove the sneaking DOM library references, I have now found that THIS library doesn't let me compile typescript without them, since it is referencing the dom library
Thank you @alexrecuenco for suggesting this!
#324 (comment)
As suggested above the approach would be:
customFetch
option during the initialization of the Graph Client.client
object do the following:AB#10470
The text was updated successfully, but these errors were encountered: