Skip to content

Can't omit field #2301

@NikitaNS

Description

@NikitaNS

Can't omit field

export const SchemaVideoData: Schema<TypeVideoDataInterface> = object({
    src: string().required(),
    width: number().required(),
    height: number().required(),
})

const type2 = SchemaVideoData.omit(['src'])

Get error:

Property 'omit' does not exist on type 'Schema<TypeVideoDataInterface, any, any, "">'

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