Files
pezkuwi-apps/packages/react-components/src/react-copy-to-clipboard.d.ts
T
pezkuwichain 2a779cc25a chore: apply eslint import sorting fixes
Automatic import ordering changes from linter.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 17:01:24 +03:00

25 lines
605 B
TypeScript

// Copyright 2017-2026 @pezkuwi/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
// Override react-copy-to-clipboard types for React 18 compatibility
declare module 'react-copy-to-clipboard' {
import type { ReactElement, ReactNode } from 'react';
interface Options {
debug?: boolean;
message?: string;
format?: string;
}
interface Props {
children?: ReactNode;
text: string;
onCopy?: (text: string, result: boolean) => void;
options?: Options;
}
function CopyToClipboard(props: Props): ReactElement;
export = CopyToClipboard;
}