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

How to parse `.js` with `.d.ts`? #660

Closed
JounQin opened this issue Jun 30, 2019 · 2 comments
Closed

How to parse `.js` with `.d.ts`? #660

JounQin opened this issue Jun 30, 2019 · 2 comments

Comments

@JounQin
Copy link

@JounQin JounQin commented Jun 30, 2019

What code were you trying to parse?

// Please put code here
// foo.d.ts
export interface Foo {
  bar: string
}

export const foo: Foo;

// foo.js
export const foo = {
  bar: '',
}

// bar.ts
import { foo, Foo } from './foo'

What did you expect to happen?
parse foo.js together with foo.d.js

What actually happened?
No way

Versions

package version
@typescript-eslint/parser 1.11.0
TypeScript 3.5.2
ESLint 6.0.1
node 10.16.0
npm 6.9.0
@JounQin

This comment has been minimized.

Copy link
Author

@JounQin JounQin commented Jun 30, 2019

@JounQin

This comment has been minimized.

Copy link
Author

@JounQin JounQin commented Jun 30, 2019

@JounQin JounQin closed this Jun 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.