From f48aa68e9918afe8eb4b34b51179f2f02edb7f5d Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 4 Sep 2024 09:15:08 +0200 Subject: [PATCH] refactor(lorem-ipsum-plugin): adapt to type refactor --- apps/lorem-ipsum-plugin/src/plugin.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/lorem-ipsum-plugin/src/plugin.ts b/apps/lorem-ipsum-plugin/src/plugin.ts index e8700b5..cfeffaa 100644 --- a/apps/lorem-ipsum-plugin/src/plugin.ts +++ b/apps/lorem-ipsum-plugin/src/plugin.ts @@ -1,4 +1,4 @@ -import { PenpotText } from '@penpot/plugin-types'; +import { Text } from '@penpot/plugin-types'; import type { PluginMessageEvent, PluginUIEvent, @@ -17,8 +17,8 @@ penpot.on('themechange', (theme) => { sendMessage({ type: 'theme', content: theme }); }); -function getSelectedShapes(): PenpotText[] { - return penpot.selection.filter((it): it is PenpotText => { +function getSelectedShapes(): Text[] { + return penpot.selection.filter((it): it is Text => { return penpot.utils.types.isText(it); }); }