mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-04 13:50:13 -05:00
refactor(lorem-ipsum-plugin): adapt to type refactor
This commit is contained in:
parent
23f7dd8c6d
commit
f48aa68e99
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue