You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All the ReferenceTracker constructions above are should be valid, with no type errors.
Actual Result
Each of them produces a type error. For example, tracker1 produces this:
Argument of type '{}' is not assignable to parameter of type '{ mode: "strict" | "legacy"; globalObjectNames: readonly string[]; }'.
Type '{}' is missing the following properties from type '{ mode: "strict" | "legacy"; globalObjectNames: readonly string[]; }': mode, globalObjectNames
Additional Info
The options object for ReferenceTracker should have all it's keys as optional. The implementation from eslint-utils looks like this:
Happy to accept a PR.
With this sort of thing it's usually better and faster to just raise a PR with context in the description rather than raising an issue first.
Repro
Expected Result
All the ReferenceTracker constructions above are should be valid, with no type errors.
Actual Result
Each of them produces a type error. For example,
tracker1
produces this:Additional Info
The options object for ReferenceTracker should have all it's keys as optional. The implementation from eslint-utils looks like this:
Versions
@typescript-eslint/experimental-utils
4.26.1
TypeScript
4.3.2
node
12.22.0
The text was updated successfully, but these errors were encountered: