Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed as duplicate of#8902
Closed as duplicate of#8902
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Playground Link
Repro Code
conststuff={foo:''}/** This accepts something like {@link stuff} */exportfunctionacceptStuff(a:{foo:string}){returna}
ESLint Config
{"extends":["plugin:@typescript-eslint/recommended"]}
tsconfig
{"compilerOptions": {"strictNullChecks":true }}
Expected Result
I'd expect herestuff
to be counted as used
Actual Result
An error is reported:
'stuff' is assigned a value but never used. 1:7 - 1:12
Additional Info
I'd like to make thosecross-file@link
s to work without having to suppress the lint rule:
https://github.com/statelyai/xstate/blob/42bfd0a30d74e1c5820728220a00db692023f1f8/packages/core/src/createActor.ts#L815-L821
I want to avoid introducing runtime imports andimport type { fromObservable } from "./actors/observable"
etc would work here. But I get a lint error when using that.