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

standard + typescript recipe fails with "<symbol> not defined." for TS interfaces #1181

Closed
cdaringe opened this issue Aug 18, 2018 · 1 comment

Comments

@cdaringe
Copy link

commented Aug 18, 2018

teeny tiny super fast example to reproduce: https://standardjs.com/#can-i-use-a-javascript-language-variant-like-flow-or-typescript

What version of standard?

8.x

What operating system, Node.js, and npm version?

10.8.x, yarn 1.9

What did you expect to happen?

  • no errors

What actually happened?

  • errors
tw-cdaringe:typescript-standard-biff-city cdieringer$ yarn lint
yarn run v1.9.0-20180706.1003
$ standard '**/src/**/*.ts'
standard: Use JavaScript Standard Style (https://standardjs.com)
  /Users/cdieringer/node/typescript-standard-biff-city/src/index.ts:1:18: 'Obama' is not defined.
  /Users/cdieringer/node/typescript-standard-biff-city/src/index.ts:2:3: 'phone' is not defined.
  /Users/cdieringer/node/typescript-standard-biff-city/src/index.ts:3:3: 'name' is not defined.

where index.ts ===

export interface Obama {
  phone: number
  name: string
}
const myMainMan: Obama = {
  phone: 8675309,
  name: 'barack obama'
}
console.log(myMainMan)
@dcousens

This comment has been minimized.

Copy link
Member

commented Sep 24, 2018

See #1101 instead

@dcousens dcousens closed this Sep 24, 2018

@lock lock bot locked as resolved and limited conversation to collaborators Dec 23, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.