Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TS compilation error due to needless file-entry-cache import #6393

Merged
merged 3 commits into from Oct 5, 2022
Merged

Fix TS compilation error due to needless file-entry-cache import #6393

merged 3 commits into from Oct 5, 2022

Conversation

adidahiya
Copy link
Contributor

Fixes #6392

This type import was added in #6356, but during code review that PR was refactored to obviate the file-entry-cache types in the public API. The import was never removed. Keeping the import here results in compilation errors for downstream consumers.

cc @jeddy3 @kimulaco

This type import was added in #6356, but during code review that PR was refactored to obviate the `file-entry-cache` types in the public API. The import was never removed. Keeping the import here results in [compilation errors](https://app.circleci.com/pipelines/github/palantir/blueprint/3156/workflows/9eda97ec-3a2f-4aa6-aa6c-89d5b65b8491/jobs/61694) for downstream consumers:

```
../../node_modules/stylelint/types/stylelint/index.d.ts:5:39 - error TS7016: Could not find a declaration file for module 'file-entry-cache'. '/home/circleci/project/node_modules/file-entry-cache/cache.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/file-entry-cache` if it exists or add a new declaration (.d.ts) file containing `declare module 'file-entry-cache';`

5  import type * as fileEntryCache from 'file-entry-cache'
```

@jeddy3 @kimulaco
@changeset-bot
Copy link

changeset-bot bot commented Oct 4, 2022

🦋 Changeset detected

Latest commit: 24ffdd9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
stylelint Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ybiquitous ybiquitous changed the title fix(types): remove unused type import Fix TS compilation error due to needless file-entry-cache import Oct 5, 2022
Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adidahiya Thanks for reporting the issue and opening this PR. LGTM 👍🏼

One point, could you update the changelog entry for the unified style?

.changeset/fix-unused-type-import.md Outdated Show resolved Hide resolved
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
Copy link
Member

@ybiquitous ybiquitous left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM 👍🏼

Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@jeddy3 jeddy3 merged commit 59d6a3f into stylelint:main Oct 5, 2022
@adidahiya adidahiya deleted the patch-1 branch October 5, 2022 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Fix TS compilation error due to needless file-entry-cache import
3 participants