file-selector
file-selector copied to clipboard
[BUG] File-selector interface error(TS2430) on electron
Describe the bug TS2430 on file-selector interface
To Reproduce
Expected behavior None Screenshots

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.