File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 9
9
* rendering.
10
10
* @param {object } $0
11
11
* @param {string } $0.pathname The pathname of the page currently being rendered.
12
+ * @param {ReactNode } $0.bodyComponent The React element to be rendered as the page body
12
13
* @param {function } $0.replaceBodyHTMLString Call this with the HTML string
13
14
* you render. **WARNING** if multiple plugins implement this API it's the
14
15
* last plugin that "wins". TODO implement an automated warning against this.
Original file line number Diff line number Diff line change @@ -921,6 +921,7 @@ export interface RenderBodyArgs extends NodePluginArgs {
921
921
922
922
export interface ReplaceRendererArgs extends NodePluginArgs {
923
923
replaceBodyHTMLString : ( str : string ) => void
924
+ bodyComponent : React . ReactNode
924
925
setHeadComponents : ( comp : React . ReactNode [ ] ) => void
925
926
setHtmlAttributes : ( attr : ReactProps < HTMLHtmlElement > ) => void
926
927
setBodyAttributes : ( attr : ReactProps < HTMLBodyElement > ) => void
@@ -1285,7 +1286,7 @@ export interface Actions {
1285
1286
traceId ?: string
1286
1287
) : void
1287
1288
1288
- printTypeDefinitions (
1289
+ printTypeDefinitions (
1289
1290
path ?: string ,
1290
1291
include ?: { types ?: Array < string > ; plugins ?: Array < string > } ,
1291
1292
exclude ?: { types ?: Array < string > ; plugins ?: Array < string > } ,
You can’t perform that action at this time.
0 commit comments