## getElementDefinitionFromElements() function

Returns an element definition from mapping of elements by property name.

**Signature:**

```typescript
export declare function getElementDefinitionFromElements(elements: InternalTypeSchema['elements'], propertyName: string): InternalSchemaElement | undefined;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| elements | [InternalTypeSchema](/content/docs/sdk/core.internaltypeschema)['elements'] | A mapping of property names to element definitions |
| propertyName | string | The property name of interest |

**Returns:**

[InternalSchemaElement](/content/docs/sdk/core.internalschemaelement) | undefined

The element definition if found.

- [getElementDefinitionFromElements() function](/content/docs/sdk/core.getelementdefinitionfromelements#getelementdefinitionfromelements-function/index.html)
- [Parameters](/content/docs/sdk/core.getelementdefinitionfromelements#parameters/index.html)
