-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as not planned
Labels
bugBug or defectBug or defect
Description
Runtime
node.js
Runtime version
v22
Module version
latest (23.x)
Last module version without issue
No response
Used with
No response
Any other relevant information
No response
What are you trying to achieve or the steps to reproduce?
Use @hapi/hapi
in a Typescript project without having joi
installed.
What was the result you got?
node_modules/@hapi/hapi/lib/types/route.d.ts:2:68 - error TS2307: Cannot find module 'joi' or its corresponding type declarations.
2 import { ObjectSchema, ValidationOptions, SchemaMap, Schema } from 'joi';
~~~~~
node_modules/@hapi/hapi/lib/types/server/server.d.ts:4:22 - error TS2307: Cannot find module 'joi' or its corresponding type declarations.
4 import { Root } from 'joi';
What result did you expect?
No compilation errors.
Metadata
Metadata
Assignees
Labels
bugBug or defectBug or defect