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

feat(types): support define custom payload #120

Merged
merged 1 commit into from Dec 18, 2020
Merged

Conversation

uinz
Copy link
Contributor

@uinz uinz commented Nov 25, 2020

Checklist

@uinz uinz changed the title faet(types): support define custom payload feat(types): support define custom payload Nov 25, 2020
});

// define custom payload
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you create a new testing file that has some declaration merging and tests for it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Declaring the module will pollute the global type environment, I have not found a good way to use dts to test

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really care about adding types to the global type env? I think we should test this properly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, this is good to go then

@fox1t
Copy link
Member

fox1t commented Nov 27, 2020

Well done. I like this PR!

});

// define custom payload
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, this is good to go then

@mcollina mcollina merged commit 8a83257 into fastify:master Dec 18, 2020
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.

None yet

4 participants