ClassMethod
import { ClassMethod } from "@alloy-js/typescript";
<ClassMethod async doc={Children} jsPrivate name={string | Namekey} nullish parameters={ParameterDescriptor[] | string[]} parametersChildren={Children} private protected public refkey={Refkey} returnType={Children} static typeParameters={TypeParameterDescriptor[] | string[]} typeParametersChildren={Children}> {children}</ClassMethod>import { ClassMethod } from "@alloy-js/typescript/stc";
ClassMethod({ async: boolean, doc: Children, jsPrivate: boolean, name: string | Namekey, nullish: boolean, parameters: ParameterDescriptor[] | string[], parametersChildren: Children, private: boolean, protected: boolean, public: boolean, refkey: Refkey, returnType: Children, static: boolean, typeParameters: TypeParameterDescriptor[] | string[], typeParametersChildren: Children,}).children(children)| async | optionalboolean |
| children | optionalChildren |
| children | optionalChildren |
| doc | optionalChildren |
| jsPrivate | optionalboolean |
| name | string | Namekey |
| nullish | optionalboolean |
| parameters | optionalParameterDescriptor[] | string[]The parameters to the function. Can be an array of strings for parameters which don’t have a type or a default value. Otherwise, it’s an array of ParameterDescriptors. |
| parametersChildren | optionalChildrenRaw content to be used as the parameter list. |
| private | optionalboolean |
| protected | optionalboolean |
| public | optionalboolean |
| refkey | optionalRefkey |
| returnType | optionalChildrenThe return type of the function. |
| static | optionalboolean |
| typeParameters | optionalTypeParameterDescriptor[] | string[]The type parameters for the function. Can be an array of strings for type parameters which don’t have any constraints or a default type, otherwise it’s an array of TypeParameterDescriptors. |
| typeParametersChildren | optionalChildrenRaw content to be used as the type parameter list. |