From eda0fee1e67dda71f5a9f824c8d74a25f0fc2b60 Mon Sep 17 00:00:00 2001 From: Grzegorz Kielak Date: Mon, 17 Jul 2017 17:13:52 +0200 Subject: [PATCH] Fix typo in react-touch (SwipConfig) https://github.com/DefinitelyTyped/DefinitelyTyped/pull/17912#pullrequestreview-49976921 --- types/react-touch/index.d.ts | 4 ++-- types/react-touch/react-touch-tests.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/types/react-touch/index.d.ts b/types/react-touch/index.d.ts index 7359abd1f4..9f0dc8fa26 100644 --- a/types/react-touch/index.d.ts +++ b/types/react-touch/index.d.ts @@ -62,9 +62,9 @@ export interface DraggableProps { export class Draggable extends React.Component { } -export function defineSwipe(config?: SwipConfig): SwipeableConfig; +export function defineSwipe(config?: SwipeConfig): SwipeableConfig; -export interface SwipConfig { +export interface SwipeConfig { /** @default 100 */ swipeDistance?: number; } diff --git a/types/react-touch/react-touch-tests.tsx b/types/react-touch/react-touch-tests.tsx index 4efaaa33b1..5a3c42a0b2 100644 --- a/types/react-touch/react-touch-tests.tsx +++ b/types/react-touch/react-touch-tests.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { CustomGesture, defineHold, defineSwipe, Draggable, DraggableCallbackArgument, DraggableStyle, Holdable, HoldableConfig, - HoldableProps, HoldConfig, moves, SwipConfig, Swipeable, SwipeableConfig, SwipeableProps + HoldableProps, HoldConfig, moves, SwipeConfig, Swipeable, SwipeableConfig, SwipeableProps } from "react-touch"; export class HoldableTest extends React.PureComponent<{}> { @@ -32,8 +32,8 @@ export class DraggableTest extends React.PureComponent<{}> { export class SwipeableTest extends React.PureComponent<{}> { render() { - const swipConfig: SwipConfig = {}; - const config: SwipeableConfig = defineSwipe(swipConfig); + const swipeConfig: SwipeConfig = {}; + const config: SwipeableConfig = defineSwipe(swipeConfig); const props: SwipeableProps = { config, onSwipeLeft: this.swipeHandler,