From a1982e61f6055b085e4794e6c82363df2e552dee Mon Sep 17 00:00:00 2001 From: addamove Date: Fri, 31 Jan 2020 19:47:38 +0300 Subject: [PATCH] export types from package (#7) --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index fd743db..b18ecdd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,7 +3,7 @@ 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; @@ -11,7 +11,7 @@ interface UseClipboardOptions { selectOnError?: boolean; } -interface ClipboardAPI { +export interface ClipboardAPI { readonly copied: boolean; readonly copy: (text?: string | any) => void; readonly isSupported: () => boolean;