element-react icon indicating copy to clipboard operation
element-react copied to clipboard

typescript 类型检查 TS7006

Open ccode-code opened this issue 8 years ago • 2 comments

image

如图

@matth3wga0

ccode-code avatar Dec 07 '17 03:12 ccode-code

I have the same error here. How could this be fixed?

nWidart avatar Dec 07 '17 14:12 nWidart

@nWidart If your tsconfig.json has the following config:

{
  "compilerOptions": {
    "noImplicitAny": true,
  }
}

TypeScript will be checking every *.d.ts, *.ts, *.tsx files to find implicitly any type.

If you want to disable this feature for the 3rd library, you can update tsconfig.json:

{
  "compilerOptions": {
    "skipLibCheck": true,
  }
}

ps: I think eleme/element-react should remove these warning.

anilpixel avatar Apr 10 '18 09:04 anilpixel