mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
431 B
TypeScript
18 lines
431 B
TypeScript
import * as React from 'react';
|
|
import SwipeableViews from 'react-swipeable-views';
|
|
import { autoPlay } from 'react-swipeable-views-utils';
|
|
|
|
const AutoPlaySwipeableViews = autoPlay(SwipeableViews);
|
|
|
|
function autoPlayTest() {
|
|
// $ExpectError
|
|
<AutoPlaySwipeableViews />;
|
|
<AutoPlaySwipeableViews
|
|
index={1}
|
|
onChangeIndex={index => {
|
|
// $ExpectType number
|
|
index;
|
|
}}
|
|
/>;
|
|
}
|