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

Typings only work when importing a default using older TS syntax #233

Closed
JoshuaKGoldberg opened this issue Dec 9, 2017 · 1 comment
Closed

Comments

@JoshuaKGoldberg
Copy link

In #169, it was mentioned that adding a default export solved for import chalk from 'chalk';. The way it's done now means we can't import * as chalk from "chalk";:

import * as chalk from "chalk";

// Property 'blue' does not exist on type 'typeof "---/node_modules/chalk/types/index"'.'
chalk.blue("foo");
@sindresorhus
Copy link
Member

This has been discussed at great lengths in #215. tl;dr It's working as intended and we're not going to change it.

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

2 participants