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

To disable void value to be used in TypeScript #14

Open
huan opened this issue Jul 7, 2019 · 0 comments
Open

To disable void value to be used in TypeScript #14

huan opened this issue Jul 7, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@huan
Copy link
Member

huan commented Jul 7, 2019

function test (): void {
  console.info('test')
}

const x = test()
console.info(x)

The above code should not be permitted because the x is void, it is expected to not be used.

However, it was allowed in the current code base settings, need to find a way to disable it.

@huan huan added the bug Something isn't working label Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant