github pmndrs/use-gesture @use-gesture/core@10.2.19

latest releases: @use-gesture/vanilla@10.3.1, @use-gesture/react@10.3.1, @use-gesture/core@10.3.1...
2 years ago

Patch Changes

  • c7cb407: ts: Typescript 4.8 introduced a new mapping definition for NonNullable which breaks the package types.

    // Native NonNullable Utility Type
    
    // definition on 4.7 and lower
    type NonNullable<T> = T extends null | undefined ? never : T
    
    // definition from 4.8
    type NonNullable<T> = T & {}

    This fix reverts the definition of NonNullable so that it works.
    More information here: #501 (comment)

Don't miss a new use-gesture release

NewReleases is sending notifications on new releases.