Skip to content

Commit 7d1163c

Browse files
types: apply partial to rehype react options
this makes createElement optional, which is more accurate since a default is provided. resolves #1
1 parent 0fabb15 commit 7d1163c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import rehypeReact, { Options as RehypeReactOptions } from 'rehype-react';
1616
export interface UseRemarkOptions {
1717
remarkParseOptions?: Partial<RemarkParseOptions>;
1818
remarkToRehypeOptions?: RemarkRehypeOptions;
19-
rehypeReactOptions?: RehypeReactOptions<typeof createElement>;
19+
rehypeReactOptions?: Partial<RehypeReactOptions<typeof createElement>>;
2020
remarkPlugins?: PluggableList;
2121
rehypePlugins?: PluggableList;
2222
onError?: (err: Error) => void;

0 commit comments

Comments
 (0)