0

I am getting the following Typescript error in a React application when attempting to import untyped JS functions:

Variable 'initialiseConfig' implicitly has type 'any' in some locations where its type cannot be determined.  TS7034

Is there a way to prevent TS getting upset about certain imported, untyped JS?

1 Answer 1

0

You can use the require statement instead of import ... from when importing libraries that doesn't have type declaration.

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.