Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Problem with TypeScript compiling with "noImplicitAny": true #11

Open
donwojtallo opened this issue Nov 3, 2020 · 0 comments
Open

Problem with TypeScript compiling with "noImplicitAny": true #11

donwojtallo opened this issue Nov 3, 2020 · 0 comments

Comments

@donwojtallo
Copy link

donwojtallo commented Nov 3, 2020

When running my project with "noImplicitAny": true I receive this error:

TypeScript error in C:/**/node_modules/antd-theme/lib/index.tsx(8,8):
Could not find a declaration file for module './runtime'. 'C:/**/node_modules/antd-theme/lib/runtime.js' implicitly has an 'any' type.  TS7016

     6 | import {
     7 |   tree, contexts, functionRegistry
  >  8 | } from './runtime';
       |        ^
     9 | 
    10 | type ThemeVariables = Record<string, any>;
    11 | 

This is because there are missing types for runtime.js. After fixing this I receive more related errors coming from index.tsx.

Edit: forgot to mention - this happens when trying to import anything from "antd-theme".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant