diff --git a/src/commands/view/CopyComponent.js b/src/commands/view/CopyComponent.ts similarity index 68% rename from src/commands/view/CopyComponent.js rename to src/commands/view/CopyComponent.ts index 23e99f0ee..740a927dc 100644 --- a/src/commands/view/CopyComponent.js +++ b/src/commands/view/CopyComponent.ts @@ -1,7 +1,9 @@ +import { CustomCommand } from './CommandAbstract'; + export default { run(ed) { const em = ed.getModel(); const models = [...ed.getSelectedAll()]; models.length && em.set('clipboard', models); }, -}; +} as CustomCommand;