fix: handle missing schema in RunnableByPath during wmill.d.ts generation (#8300)

This commit is contained in:
Ruben Fiszel
2026-03-10 12:38:43 +00:00
committed by GitHub
parent e3d26dc589
commit 31fc213933

View File

@@ -107,7 +107,11 @@ function hiddenRunnableToTsType(runnable: Runnable) {
return '{}'
}
} else if (isRunnableByPath(runnable)) {
return schemaToTsType(removeStaticFields(runnable?.schema, runnable?.fields ?? {}))
if (runnable?.schema) {
return schemaToTsType(removeStaticFields(runnable.schema, runnable?.fields ?? {}))
} else {
return '{}'
}
} else {
return '{}'
}