Skip to content

getCallSignatureProps

Extract only the call signature props from a props object which extends CallSignatureProps. You can provide default values for the props.

import { getCallSignatureProps } from "@alloy-js/python";
function getCallSignatureProps(props: CallSignatureProps, defaults?: Partial<CallSignatureProps>): Pick<CallSignatureProps, "args" | "kwargs" | "parameters" | "returnType" | "typeParameters">;
propsCallSignatureProps
defaultsoptional Partial<CallSignatureProps>

Pick<CallSignatureProps, “args” | “kwargs” | “parameters” | “returnType” | “typeParameters”>