Skip to content

Add undefined to optional properties in TypeScript definitions #8119

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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