ClassMethod
import { ClassMethod } from "@alloy-js/typescript";
<ClassMethod async doc={Children} jsPrivate name="string" 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, parameters: ParameterDescriptor[] | string[], parametersChildren: Children, private: boolean, protected: boolean, public: boolean, refkey: Refkey, returnType: Children, static: boolean, typeParameters: TypeParameterDescriptor[] | string[], typeParametersChildren: Children,}).children(children)
Props
async | optionalboolean |
children | optionalChildren |
children | optionalChildren |
doc | optionalChildren |
jsPrivate | optionalboolean |
name | string |
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 | optionalChildren Raw content to be used as the parameter list. |
private | optionalboolean |
protected | optionalboolean |
public | optionalboolean |
refkey | optionalRefkey |
returnType | optionalChildren The 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 | optionalChildren Raw content to be used as the type parameter list. |