TypeScript d.ts file icon has an X

What does the grey box with the X in it mean on this d.ts file?

1
3 comments

This icon means that the file is explicitly excluded from indexing.

Was it generated by the compiler?

0
Avatar
Permanently deleted user

No, aren't .d.ts files meant for declaring your interfaces? I use it like so:

Home.d.ts:

interface HomeProps {

   ...

}

Home.tsx:

class Home extends React.Component<HomeProps> {

    ...

}

0

Please check your .idea/workspace.xml - do you have "TypeScriptGeneratedFilesManager" component there with your d.ts listed among "exactExcludedFiles"?

 

<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
<option name="exactExcludedFiles">
<list>
...
</list>
</option>
</component>
1

Please sign in to leave a comment.