fix notebook renderers

This commit is contained in:
Peng Lyu
2025-11-12 16:34:57 -08:00
parent 163d5494c0
commit d7a2778121
2 changed files with 3 additions and 6 deletions

View File

@@ -65,8 +65,7 @@ const domEval = (container: Element) => {
for (const key of preservedScriptAttributes) {
const val = node[key] || node.getAttribute && node.getAttribute(key);
if (val) {
// eslint-disable-next-line local/code-no-any-casts
scriptTag.setAttribute(key, val as any);
scriptTag.setAttribute(key, val as unknown as string);
}
}

View File

@@ -127,15 +127,13 @@ suite('Notebook builtin output renderer', () => {
return text;
},
blob() {
// eslint-disable-next-line local/code-no-any-casts
return [] as any;
return new Blob([text], { type: mime });
},
json() {
return '{ }';
},
data() {
// eslint-disable-next-line local/code-no-any-casts
return [] as any;
return new Uint8Array();
},
metadata: {}
};