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

fix: add typescript hints for d2 config #1401

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kabaros
Copy link
Contributor

@kabaros kabaros commented Jan 17, 2025

this PR adds type definition and documentation for d2config, which then consumers can use to get type hints in their d2config even if they're not using TypeScript

A followup would be to add the type hint to the default config file in the template

d2config-types.webm

@kabaros kabaros requested a review from a team January 17, 2025 12:38
@amcgee
Copy link
Member

amcgee commented Jan 20, 2025

Great initiative, nice work @kabaros !

I'm wondering if this should be in app-platform instead of app-runtime, since that's where the config is directly used and where updates will happen?

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.

2 participants