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

Resolving @import #87

Open
alexedwardjones opened this issue Nov 29, 2019 · 1 comment
Open

Resolving @import #87

alexedwardjones opened this issue Nov 29, 2019 · 1 comment

Comments

@alexedwardjones
Copy link

Should @import rules be resolved and included in the type definitions?

Directory Structure

src/Component
src/Component/Header/
src/Component/Header/header.css
src/Styles
src/Styles/dimensions.css

dimensions.css

.container { color: red; }

header.css

@import '../../Styles/dimensions.css';

.header { color: blue; }

Expected Result

declare const styles: {
   readonly "header": string;
   readonly "container": string;
};
export = styles;

Actual Result

declare const styles: {
   readonly "header": string;
};
export = styles;
@LasaleFamine
Copy link

+1 for resolving @imports correctly from the node_modules directory. Otherwise we will have half of the files with declarations and half without.

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