diff --git a/src/ui/converters/createPenpotText.ts b/src/ui/converters/createPenpotText.ts index f7baa97..32d97a4 100644 --- a/src/ui/converters/createPenpotText.ts +++ b/src/ui/converters/createPenpotText.ts @@ -43,7 +43,7 @@ export const createPenpotText = ( width: node.width, height: node.height, // rotation: 0, - type: 'text', + type: Symbol.for('text'), content: { type: 'root', // verticalAlign: translateVerticalAlign(node.textAlignVertical), diff --git a/src/ui/lib/types/text/textAttributes.d.ts b/src/ui/lib/types/text/textAttributes.d.ts index 8786fb6..4a94c40 100644 --- a/src/ui/lib/types/text/textAttributes.d.ts +++ b/src/ui/lib/types/text/textAttributes.d.ts @@ -2,6 +2,6 @@ import { TextContent } from './textContent'; export type TextAttributes = { id?: string; - type: 'text'; + type: symbol; content?: TextContent; };