1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-17 00:25:50 +07:00

fix: @typescript-eslint/no-explicit-any

This commit is contained in:
Griffithtp
2019-06-26 00:10:15 +01:00
parent 7cab3f289e
commit 6eec4f45d9
8 changed files with 17 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
import { SyntheticEvent } from 'react';
export const copyToClipBoardUtility = (str: string): any => (event: SyntheticEvent<HTMLElement>): void => {
export const copyToClipBoardUtility = (str: string): ((e: SyntheticEvent<HTMLElement>) => void) => (event: SyntheticEvent<HTMLElement>): void => {
event.preventDefault();
const node = document.createElement('div');