Skip to content

Commit

Permalink
export certain types for use in external packages
Browse files Browse the repository at this point in the history
  • Loading branch information
blesson3 committed Apr 29, 2022
1 parent f355e2e commit 25158a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from "react";

declare type Direction = "left" | "right" | "up" | "down";
export declare type Direction = "left" | "right" | "up" | "down";
declare type SwipeHandler = (direction: Direction) => void;
declare type CardLeftScreenHandler = (direction: Direction) => void;
declare type SwipeRequirementFufillUpdate = (direction: Direction) => void;
declare type SwipeRequirementUnfufillUpdate = () => void;
declare type Location = (x: number, y: number) => void;

declare interface API {
export declare interface API {
/**
* Programmatically trigger a swipe of the card in one of the valid directions `'left'`, `'right'`, `'up'` and `'down'`. This function, `swipe`, can be called on a reference of the TinderCard instance. Check the [example](https://github.com/3DJakob/react-tinder-card-demo/blob/master/src/examples/Advanced.js) code for more details on how to use this.
*
Expand Down

0 comments on commit 25158a0

Please sign in to comment.