FunctionType
A TypeScript function declaration.
FunctionType: import("@alloy-js/core").Component<FunctionTypeProps> & { TypeParameters: import("@alloy-js/core").Component<import("./FunctionBase.jsx").TypeParametersProps> & Required<Pick<import("@alloy-js/core").Component<import("./FunctionBase.jsx").TypeParametersProps>, "tag">>; Parameters: import("@alloy-js/core").Component<import("./FunctionBase.jsx").FunctionTypeParametersProps> & Required<Pick<import("@alloy-js/core").Component<import("./FunctionBase.jsx").FunctionTypeParametersProps>, "tag">>;}Remarks
Section titled “Remarks”Providing parameters and type parameters can be accomplished in one of three ways:
- As an array of TypeParameterDescriptors or TypeParameterDescriptors.
- As raw content via the
parametersChildrenortypeParametersChildrenprops. - As a child of this component via the [unresolved link] or [unresolved link] components.
Example
Section titled “Example”(foo: string, bar: number) => void