8000 Improve and distribute TypeScript typings by dvdsgl · Pull Request #210 · glideapps/quicktype · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve and distribute TypeScript typings #210

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.

Sign up for GitHub < 8000 /div>

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

Merged
merged 5 commits into from
Oct 2, 2017
Merged

Improve and distribute TypeScript typings #210

merged 5 commits into from
Oct 2, 2017

Conversation

dvdsgl
Copy link
Member
@dvdsgl dvdsgl commented Sep 25, 2017

This is an attempt to properly collect and distribute TypeScript typings for some of our distributed modules.

These changes typecheck but fail to run. There are a few issues I still need to figure out:

  • I create module declarations for relative modules like "Data.Either", but I can't figure out how to make the relative import work; import * from "./Data.Either" fails to build, while import * from "Data.Either" fails to run.

I solved this by rewriting the imports in script/build.sh, relativizing absolute imports in the JavaScript files produced by tsc. I also copy @types/*.d.ts under the corresponding module directories in dist/. This is all surprisingly manual, perhaps we'll find a better way later.

@dvdsgl dvdsgl force-pushed the typings branch 4 times, most recently from 4006986 to e33fc7d Compare October 2, 2017 02:40
@dvdsgl dvdsgl changed the title [DON'T MERGE] Improve and distribute TypeScript typings Improve and distribute TypeScript typings Oct 2, 2017
@dvdsgl dvdsgl merged commit 21c28e4 into master Oct 2, 2017
@dvdsgl dvdsgl deleted the typings branch October 4, 2017 06:56
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

Successfully merging this pull request may close these issues.

1 participant
0