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

Rework build process to use TypeScript source files #151

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Aug 23, 2021

For a package that advertises better TypeScript support than the package it wraps, it's strange that zen-observable-ts doesn't actually use TypeScript internally as a build tool.

Instead of hand-crafting index.d.ts, we should just let tsc do its thing, so this repository looks more like our other TypeScript-friendly projects.

@benjamn
Copy link
Member Author

benjamn commented Aug 24, 2021

I think #152 is a better way to solve apollographql/apollo-client#8688, which was one of the reasons I started working on this PR (hoping that tsc would do a better job of generating .d.ts files).

After my investigation yesterday, I remembered why I didn't use TypeScript when I first set this package up: the freedom to hand-craft .d.ts files is actually pretty useful, as #152 demonstrates.

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