In my interface, I define the structure of a callback as shown below:
interface SliderOptions {
onCreateSlide?: (slide: Slide) => void;
onSlideTransition?: (slide: Slide, offset: number, onTransitionComplete: () => void); // This line results in a TypeScript compiler error.
// more options etc
}
However, I am encountering an error, which is illustrated in the image linked below:
https://i.sstatic.net/jtowA.png
I'm puzzled by why this error is occurring, considering that the previous line, which is similar in nature, does not produce any errors in my opinion.