---
schema_version: "1"
id: 3bf0edd92b45b908ca1c328c1db6dc6dc765d5fe5b85457bde60bb103c9eee02
title: functionParamTypes
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.11/dw-types-functions-functionparamtypes.md
canonical_url: https://docs.mulesoft.com/dataweave/2.11/dw-types-functions-functionparamtypes
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e8cf44f9f8d9847bc5d9bdede812d4f88f4be95a5ff77c95b9de4e830a9d9af7
description: MuleSoft Documentation Site
release: "2.11"
latest: false
---
---
product: DataWeave
version: 2.11
---

# functionParamTypes

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## functionParamTypes(t: Type): Array<FunctionParam>

Returns the list of parameters from the given function type. This function fails if the provided
type is not a Function type.

_Introduced in DataWeave version 2.3.0._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>t</code></p></td><td><p>The function type.</p></td></tr></tbody></table>

### Example

This example shows how `functionParamTypes` behaves with different inputs.

#### Source

```DataWeave
%dw 2.0
output application/json
import * from dw::core::Types
type AFunction = (String, Number) -> Number
type AFunction2 = () -> Number
---
{
    a: functionParamTypes(AFunction),
    b: functionParamTypes(AFunction2)
}
```

#### Output

```Json
{
   "a": [
     {
       "paramType": "String",
       "optional": false
     },
     {
       "paramType": "Number",
       "optional": false
     }
   ],
   "b": [

   ]
 }
```
