---
schema_version: "1"
id: 804faccfeceff33b7f444ceab105e5ea4b73c00b57eb94a1d3bb73ea5380e6b8
title: baseTypeOf
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/latest/dw-types-functions-basetypeof.md
canonical_url: https://docs.mulesoft.com/dataweave/latest/dw-types-functions-basetypeof
source_site: docs.mulesoft.com
content_type: documentation
content_hash: d3f35ebfa1b8cfada16af53f704f9f7f291d9159ac3281597328b3c35d354911
description: MuleSoft Documentation Site
release: "2.13"
latest: true
---
---
product: DataWeave
version: 2.13
is-latest-version: true
---

# baseTypeOf

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

## baseTypeOf(t: Type): Type

Returns an the base type of the given 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 type to check.</p></td></tr></tbody></table>

### Example

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

#### Source

```DataWeave
%dw 2.0
import * from dw::core::Types
type AType = String {format: "YYYY-MM-dd"}
output application/json
---
{
   a: baseTypeOf(AType)
}
```

#### Output

```Json
{
  "a": "String"
}
```
