Skip to content

Commit b5ef21b

Browse files
committed
fix(esign): cast helpers to any to fix TS build after barrel conversion
The types barrel conversion (427736a) made extension helpers resolve to unknown in strict TS mode, breaking the esign prepublishOnly build. Matches the pattern already used in template-builder.
1 parent 8e171d5 commit b5ef21b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/esign/src/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,10 @@ const SuperDocESign = forwardRef<Types.SuperDocESignHandle, Types.SuperDocESignP
129129
(editor: Editor) => {
130130
if (!editor) return;
131131

132-
const tags = editor.helpers.structuredContentCommands.getStructuredContentTags(editor.state);
132+
const structuredContentHelpers = (editor.helpers as any)?.structuredContentCommands;
133+
if (!structuredContentHelpers?.getStructuredContentTags) return;
134+
135+
const tags = structuredContentHelpers.getStructuredContentTags(editor.state);
133136

134137
const configValues = new Map<string, Types.FieldValue | Types.TableFieldValue>();
135138

0 commit comments

Comments
 (0)