docs-util: fix helper step settings (#10045)
This commit is contained in:
@@ -3,9 +3,16 @@ import { ArrayType, SignatureReflection, SomeType, UnionType } from "typedoc"
|
||||
const disallowedIntrinsicTypeNames = ["unknown", "void", "any", "never"]
|
||||
|
||||
export function isWorkflowStep(reflection: SignatureReflection): boolean {
|
||||
return (
|
||||
reflection.parent?.children?.some((child) => child.name === "__step__") ||
|
||||
false
|
||||
if (reflection.parent?.children?.some((child) => child.name === "__step__")) {
|
||||
return true
|
||||
}
|
||||
if (reflection.type?.type !== "intersection") {
|
||||
return false
|
||||
}
|
||||
return reflection.type.types.some(
|
||||
(refType) =>
|
||||
refType.type === "reference" &&
|
||||
refType.name === "StepFunctionReturnConfig"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user