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

Change example JSON responses to use Typescript types #137

Merged
merged 1 commit into from
Mar 25, 2022

Conversation

hsjoberg
Copy link
Collaborator

@hsjoberg hsjoberg commented Dec 29, 2021

This pull request attempts to clear out inconsistencies with the JSON examples in the LUDs.

Types such as MilliSatoshi has been changed to number to clear up any confusions regarding what a value is supposed to be. Context-important information has been moved to a comment on the same line instead.

The rationale behind Typescript types being used is because it's the closest to Javascript, which in turn is the closest to JSON.

The keys in the examples has been changed to be an actual string, as is required to be valid JSON.

Not sure if this is a worthwhile improvement or an actual improvement at all, but it at least brings some consistency.

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