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

index.js (index.ts) usage #162

Open
jkjustjoshing opened this issue Jun 14, 2017 · 0 comments
Open

index.js (index.ts) usage #162

jkjustjoshing opened this issue Jun 14, 2017 · 0 comments

Comments

@jkjustjoshing
Copy link
Contributor

In the TypeScript styleguide, you mention that "Use index.ts for the module definition file, so you can import the module by directory name", but then go on to use componentName.module.ts as the module file name. Do you recommend using index.ts (or index.js for ES6+ projects) or componentName.module.ts/js?

I personally like index.js, but it's only mentioned in passing in the TS style guide and not at all in the JS style guide, so my guess is you'll respond to this by removing the reference to it in the TS guide.

Thanks!!

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