TCMiranda / joi-extract-type

Provides native type extraction from Joi schemas for Typescript
MIT License
152 stars 27 forks source link

methods have gone missing on Joi.any() with new update #36

Closed lonewarrior556 closed 4 years ago

lonewarrior556 commented 4 years ago
    "@hapi/joi": "15.1.1",
    "joi-extract-type": "15.0.2",
    "@types/hapi__joi": "15.0.4",
    "typescript": "3.8.3"

image

VS

    "@hapi/joi": "15.1.1",
    "joi-extract-type": "15.0.7",
    "@types/hapi__joi": "15.0.4",
    "typescript": "3.8.3"

image

lonewarrior556 commented 4 years ago

Line 93 in index.ts from

   export interface BoxAnySchema<N extends Box<any, boolean> = any> {

to

  export interface BoxAnySchema<N extends Box<any, boolean>> extends AnySchema {
TCMiranda commented 4 years ago

Thanks! Published on 15.0.8