mirror of
https://github.com/pezkuwichain/pezkuwi-sdk-ui.git
synced 2026-07-12 18:05:44 +00:00
fix: Resolve TypeScript build errors for verbatimModuleSyntax compatibility
- Fix EventEmitter import in page-contracts/store.ts (use default import) - Add type declarations for eventemitter3 to fix ESM import type issue - Add type declarations for react-copy-to-clipboard to fix React types mismatch Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// Copyright 2017-2026 @pezkuwi/react-components authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Type override for react-copy-to-clipboard to fix React types compatibility
|
||||
declare module 'react-copy-to-clipboard' {
|
||||
import * as React from 'react';
|
||||
|
||||
export interface Options {
|
||||
debug?: boolean;
|
||||
message?: string;
|
||||
format?: string;
|
||||
}
|
||||
|
||||
export interface Props {
|
||||
children: React.ReactNode;
|
||||
text: string;
|
||||
onCopy?(text: string, result: boolean): void;
|
||||
options?: Options;
|
||||
}
|
||||
|
||||
declare const CopyToClipboard: React.FC<Props>;
|
||||
export default CopyToClipboard;
|
||||
}
|
||||
Reference in New Issue
Block a user