Skip to content

Commit dbc0c44

Browse files
committed
fix: minor typing bug
1 parent cd90895 commit dbc0c44

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/core/src/schema/styles/createSpec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,13 @@ export function createStyleSpec<T extends StyleConfig>(
6262
};
6363

6464
if (styleConfig.propSchema === "boolean") {
65-
// @ts-ignore not sure why this is complaining
66-
renderResult = styleImplementation.render();
65+
renderResult = styleImplementation.render(mark.attrs.stringValue);
6766
} else if (styleConfig.propSchema === "string") {
6867
renderResult = styleImplementation.render(mark.attrs.stringValue);
6968
} else {
7069
throw new UnreachableCaseError(styleConfig.propSchema);
7170
}
7271

73-
// const renderResult = styleImplementation.render();
7472
return addStyleAttributes(
7573
renderResult,
7674
styleConfig.type,

0 commit comments

Comments
 (0)