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

Publish types for package #5

Open
achou11 opened this issue Jan 3, 2025 · 1 comment
Open

Publish types for package #5

achou11 opened this issue Jan 3, 2025 · 1 comment

Comments

@achou11
Copy link

achou11 commented Jan 3, 2025

Having access to the the type definitions is helpful when you're programmatically working with the plugin. Considering this project is using TypeScript already, there are two paths:

  1. Emit the type definitions as a build step
  2. Write a manual definitions file

In the meantime, I have manually written definitions in https://github.com/achou11/webxdc-app-template/blob/main/types/webxdc__vite-plugins.d.ts in case it's helpful for anyone else. Happy to make a PR if helpful!

@Simon-Laux
Copy link

Yes, a PR would be very helpful and appreciated, I also encountered this today.

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