Errors after adding to the project
huksley opened this issue · 2 comments
huksley commented
When I add import { InterfaceFrom } from 'types-joi'
to the code, I get the following error invoking tsc:
[build] node_modules/types-joi/index.d.ts:67:26 - error TS2304: Cannot find name 'readonly'.
[build]
[build] 67 allow<U>(values: readonly U[]): Schema<T | U>;
My dependencies are
typescript": "^3.2.2"
"joi": "^10.6.0",
"hapi": "^16.6.2",
Unfortunately I can`t upgrade hapi
huksley commented
IMO it would be good to have it added to README.
Btw typescriptVersion: "x.x.x" not enforced right by npm/yarn :-(