---
id: fast-element.fastelementdefinition._constructor_
title: FASTElementDefinition.(constructor)
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [FASTElementDefinition](./fast-element.fastelementdefinition.md) &gt; [(constructor)](./fast-element.fastelementdefinition._constructor_.md)

## FASTElementDefinition.(constructor)

Creates an instance of FASTElementDefinition.

<b>Signature:</b>

```typescript
constructor(type: TType, nameOrConfig?: PartialFASTElementDefinition | string);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  type | TType | The type this definition is being created for. |
|  nameOrConfig | [PartialFASTElementDefinition](./fast-element.partialfastelementdefinition.md) \| string | The name of the element to define or a config object that describes the element to define. |
