file-selector icon indicating copy to clipboard operation
file-selector copied to clipboard

[BUG] File-selector interface error(TS2430) on electron

Open can019 opened this issue 2 years ago • 0 comments

Describe the bug TS2430 on file-selector interface

To Reproduce

Expected behavior None Screenshots

스크린샷 2022-07-12 오후 1 50 05
node_modules/file-selector/dist/file.d.ts:3:18 - error TS2430: Interface 'FileWithPath' incorrectly extends interface 'File'.
  Types of property 'path' are incompatible.
    Type 'string | undefined' is not assignable to type 'string'.
      Type 'undefined' is not assignable to type 'string'.
3 export interface FileWithPath extends File {
                 ~~~~~~~~~~~~

Desktop (please complete the following information):

  • OS: [Ubuntu-latest]
  • Browser [Electron]
  • Version [0.6.0]

Additional context In the meantime, I've added this setting to tsconfig.json to suppress this error by

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

However, I wrote an issue because it is a bug that needs to be solved one day.

can019 avatar Jul 12 '22 05:07 can019