From 7c9dd0b76cd95520e2377b412ff7676fb9e3e628 Mon Sep 17 00:00:00 2001 From: Jordi Sala Morales Date: Tue, 9 Apr 2024 10:21:55 +0200 Subject: [PATCH] remove eslint disable (#12) --- src/ui/PenpotExporter.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/PenpotExporter.tsx b/src/ui/PenpotExporter.tsx index 62c2aab..81831bf 100644 --- a/src/ui/PenpotExporter.tsx +++ b/src/ui/PenpotExporter.tsx @@ -1,6 +1,7 @@ import { useEffect, useState } from 'react'; import slugify from 'slugify'; +import { NodeData } from '../common/interfaces'; import { createPenpotFile } from './converters'; import { validateFont } from './validators'; @@ -12,8 +13,7 @@ export const PenpotExporter = () => { setMissingFonts(missingFonts => missingFonts.add(font)); }; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - const onMessage = (event: any) => { + const onMessage = (event: MessageEvent<{ pluginMessage: { type: string; data: NodeData } }>) => { if (event.data.pluginMessage.type == 'FIGMAFILE') { const file = createPenpotFile(event.data.pluginMessage.data);