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 .tailor's type definition to return this. #3063

Open
matthew-holder-revvity opened this issue Feb 7, 2025 · 0 comments
Open

Change .tailor's type definition to return this. #3063

matthew-holder-revvity opened this issue Feb 7, 2025 · 0 comments
Labels
feature New functionality or improvement

Comments

@matthew-holder-revvity
Copy link

Runtime

node.js

Runtime version

18.20.4

Module version

17.13.3

Used with

hapi application

Any other relevant information

No response

What problem are you trying to solve?

The .tailor call's type definition return Schema and loses the actual schema type it was called on. It likely should return this.

Do you have a new or modified API suggestion to solve the problem?

Have .tailor return this in the index.d.ts.

@matthew-holder-revvity matthew-holder-revvity added the feature New functionality or improvement label Feb 7, 2025
@matthew-holder-revvity matthew-holder-revvity changed the title Change .tailor to return this. Change .tailor's type definition to return this. Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality or improvement
Projects
None yet
Development

No branches or pull requests

1 participant