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

enhancement Add types to app folder as well #428

Merged
merged 4 commits into from
Feb 12, 2020
Merged

Conversation

snewcomer
Copy link
Collaborator

I think this will work so you don't have to reach into addon/types to import. ember-cli will look for it in the app/ namespace I believe. @josemarluedke Lmk if you have the same thought as well.

ref #424

@snewcomer
Copy link
Collaborator Author

Or since this is at build time, you would reference ember-changeset/app/types?

@josemarluedke
Copy link
Contributor

@snewcomer Yeah, in the app folder would not work either. I believe it needs to be on the root folder. eg. ember-changeset/types/index.d.ts

@snewcomer
Copy link
Collaborator Author

That makes a lot more sense :)

@josemarluedke
Copy link
Contributor

I just tested here and moving to root does work correctly.

types/index.d.ts Outdated
@@ -0,0 +1,20 @@
import {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also remove this file from addon/types/index.d.ts?

@snewcomer snewcomer merged commit 53f561d into master Feb 12, 2020
@snewcomer snewcomer deleted the sn/app-types-export branch February 12, 2020 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants