Visitar URL original
Change `.tailor`'s type definition to return `this`. · Issue #3063 · hapijs/joi · GitHub
Skip to content

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

Open

Description

@matthew-holder-revvity

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.

Activity

  1. changed the title [-]Change `.tailor` to return `this`.[/-] [+]Change `.tailor`'s type definition to return `this`.[/+] on Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality or improvement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions