Skip to content

Typescript: SchemaDescription no longer exported #1144

@martnst

Description

@martnst

Describe the bug
It appears that e.g.SchemaDescription are no longer exported.

Is this on purpose? The README on the other hand still lists it here.
So it seems to not just be an internal type.

To Reproduce

import { SchemaDescription } from 'yup/lib/schema'

export function envConfigFromSchemaDescription(schemaDescription: SchemaDescription): any {
  // …
}

Expected behavior
It should not be required to be importing from internal lib folder whatsoever.

import { SchemaDescription } from 'yup'

Platform (please complete the following information):

$  yarn list | grep yup
├─ @types/yup@0.26.37
└─ yup@0.32.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions