From 741a3da0770d96f7de81e3b2f11c80514ed9732c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20S=C3=A1nchez?= Date: Wed, 10 Apr 2024 13:01:14 +0200 Subject: [PATCH] fix text --- src/ui/lib/types/text/textAttributes.d.ts | 1 + src/ui/lib/types/text/textContent.d.ts | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ui/lib/types/text/textAttributes.d.ts b/src/ui/lib/types/text/textAttributes.d.ts index 8fbb3ad..78ef8b8 100644 --- a/src/ui/lib/types/text/textAttributes.d.ts +++ b/src/ui/lib/types/text/textAttributes.d.ts @@ -1,6 +1,7 @@ import { TextContent } from './textContent'; export type TextAttributes = { + // eslint-disable-next-line @typescript-eslint/no-explicit-any id?: any; type: symbol; content?: TextContent; diff --git a/src/ui/lib/types/text/textContent.d.ts b/src/ui/lib/types/text/textContent.d.ts index 114bf5a..dbb3637 100644 --- a/src/ui/lib/types/text/textContent.d.ts +++ b/src/ui/lib/types/text/textContent.d.ts @@ -21,8 +21,8 @@ type Paragraph = { direction?: string; textDecoration?: string; textTransform?: string; - typographyRefId?: string | null; - typographyRefFile?: string | null; + typographyRefId?: string; + typographyRefFile?: string; children: TextNode[]; }; @@ -37,8 +37,8 @@ type TextNode = { direction?: string; textDecoration?: string; textTransform?: string; - typographyRefId?: string | null; - typographyRefFile?: string | null; + typographyRefId?: string; + typographyRefFile?: string; }; // eslint-disable-next-line @typescript-eslint/no-explicit-any