Fix lint errors after upgrades and narrow tsc

This commit is contained in:
Gregory Schier committed 2025-07-14 10:09:08 -07:00
1 parent 5c1fba4b0c
commit 6f1fd7a254
35 files changed
+98 -15

No files matched your search

+2 -1
View File
@@ -19,7 +19,8 @@ export const plugin: PluginDefinition = {
],
async onRender(_ctx: Context, args: CallTemplateFunctionArgs): Promise<string | null> {
try {
const doc = new DOMParser().parseFromString(String(args.values.input), 'text/xml');
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const doc: any = new DOMParser().parseFromString(String(args.values.input), 'text/xml');
const result = xpath.select(String(args.values.query), doc, false);
if (Array.isArray(result)) {
return String(result.map((c) => String(c.firstChild))[0] ?? '');