Skip to content

Commit ecedbcf

Browse files
fix: update types
1 parent 7e2a5de commit ecedbcf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/@lwc/ssr-runtime/src/render.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,32 +101,32 @@ export function renderAttrsNoYield(
101101
}
102102

103103
export function* fallbackTmpl(
104-
_shadowSlottedContent: any,
105-
_lightSlottedContent: any,
106-
_scopedSlottedContent: any,
104+
shadowSlottedContent: AsyncGeneratorFunction,
105+
_lightSlottedContent: unknown,
106+
_scopedSlottedContent: unknown,
107107
Cmp: LightningElementConstructor,
108108
_instance: unknown
109109
) {
110110
if (Cmp.renderMode !== 'light') {
111111
yield `<template shadowrootmode="open"></template>`;
112-
if (_shadowSlottedContent) {
113-
yield _shadowSlottedContent(_instance);
112+
if (shadowSlottedContent) {
113+
yield shadowSlottedContent(_instance);
114114
}
115115
}
116116
}
117117

118118
export function fallbackTmplNoYield(
119119
emit: (segment: string) => void,
120-
_shadowSlottedContent: any,
121-
_lightSlottedContent: any,
122-
_scopedSlottedContent: any,
120+
shadowSlottedContent: AsyncGeneratorFunction,
121+
_lightSlottedContent: unknown,
122+
_scopedSlottedContent: unknown,
123123
Cmp: LightningElementConstructor,
124124
_instance: unknown
125125
) {
126126
if (Cmp.renderMode !== 'light') {
127127
emit(`<template shadowrootmode="open"></template>`);
128-
if (_shadowSlottedContent) {
129-
_shadowSlottedContent(emit, _instance);
128+
if (shadowSlottedContent) {
129+
shadowSlottedContent(emit, _instance);
130130
}
131131
}
132132
}

0 commit comments

Comments
 (0)