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

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

   ]
 }
```
