## getElementDefinition() function

Returns an element definition by type and property name.

**Signature:**

```typescript
export declare function getElementDefinition(typeName: string, propertyName: string, profileUrl?: string): InternalSchemaElement | undefined;
```

## Parameters

| Parameter     | Type   | Description                                           |
|---------------|--------|-------------------------------------------------------|
| typeName      | string | The type name.                                       |
| propertyName  | string | The property name.                                   |
| profileUrl    | string | _(Optional)_ (optional) The URL of the current resource profile |

**Returns:**

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

The element definition if found.

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