Skip to content

Commit

Permalink
export types from package (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
addamove authored Jan 31, 2020
1 parent 34a28d1 commit a1982e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ import copy from 'clipboard-copy';
import { useCallback, useRef } from 'react';
import { useTimedToggle } from './useTimedToggle';

interface UseClipboardOptions {
export interface UseClipboardOptions {
copiedTimeout?: number;
onSuccess?: () => void;
onError?: () => void;
selectOnCopy?: boolean;
selectOnError?: boolean;
}

interface ClipboardAPI {
export interface ClipboardAPI {
readonly copied: boolean;
readonly copy: (text?: string | any) => void;
readonly isSupported: () => boolean;
Expand Down

0 comments on commit a1982e6

Please sign in to comment.