Skip to content

index.js (index.ts) usage #162

@jkjustjoshing

Description

@jkjustjoshing

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!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions