0

There is a global object in window as "Apollo".

I try to use it in Angular like Apollo.get() and as types: function show(): Apollo.Data {}.

How to do that?

I have tried to determine:

typings.d.ts

With content:

declare var Apollo;

But inside Angular code I can not use it as type:

let el:Apollo.Data.

And new Apollo.Geometry();

1 Answer 1

1

find out polyfills.ts and end of the file place below Snippet.

declare global {
  interface Window {
    Apollo: any;
  }
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.