Skip to content

Add undefined to optional properties in TypeScript definitions #8119

@rtcpw

Description

@rtcpw

For example, slideOffsetBefore property is defined as:

slidesOffsetBefore?: number;

When using the tsconfig.json option exactOptionalPropertyTypes, it becomes cumbersome to set the slidesOffsetBefore to undefined. Updating the TypeScript definitions like so would improve the developer experience:

slidesOffsetBefore?: number | undefined;

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