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

ESLint configuration: property 'bar' does not exist on type 'Foo | Error' #40

Open
tim-rohrer opened this issue Oct 8, 2021 · 0 comments

Comments

@tim-rohrer
Copy link

tim-rohrer commented Oct 8, 2021

In particular in my IDE,

Property 'bar' does not exist on type 'Foo | Error'.
  Property 'bar' does not exist on type 'Error'.ts(2339)

The code:

const { ok, err, val } = await someAsyncCallWithResults<Foo, Error>Implemented()

expect(val.bar).toBeDefined

Code compiles without error using tsc so I suspect this is a VSCode/ESLint config issue.

I realize this may not truly be a ts-results issue, but perhaps someone who uses this lib can point me in the right direction to resolve the issue?

Thank you.

Refs:
eslintrc.json
My base tsconfig.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant