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

# 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": [

   ]
 }
```
