splide icon indicating copy to clipboard operation
splide copied to clipboard

Typings error TS1256

Open JasperVanDenBosch opened this issue 3 years ago • 0 comments

Checks

  • [X] Not a duplicate.
  • [X] Not a question, feature request, or anything other than a bug report directly related to Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions

Version

v4.0.7

Description

I'm encountering this when building with typescript

node_modules/@splidejs/splide/dist/types/index.d.ts:756:48 - error TS1256: A rest element must be last in a tuple type.

756 declare type Push<T extends any[], U = any> = [...T, U];

Typescript version 3.9.10

Link to location in code: https://github.com/Splidejs/splide/blob/5348c892d1d345152c45c0ed713565fc8b5ba4c6/src/js/types/utils.ts#L20

Reproduction Link

No response

Steps to Reproduce

Command to reproduce: npm tsc

Expected Behaviour

No syntax error in type definitions

JasperVanDenBosch avatar Jul 19 '22 20:07 JasperVanDenBosch