hapijs / hapijs/joi

Change `.tailor`'s type definition to return `this`.

Open
#3,063 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
21.2k
Forks
1.5k
Avg merge
4h 57m
Merged PRs (30d)
14

Description

### 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`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.