# getSectionContract()

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Function: getSectionContract()

> **getSectionContract**(`sectionIdOrAlias`): [`SectionContract`](https://getpromptscript.dev/api-reference/core/src/interfaces/SectionContract/index.md) \| `undefined`

Defined in: [core/src/section-registry.ts:242](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/core/src/section-registry.ts#L242)

## Parameters

### sectionIdOrAlias

`string`

## Returns

[`SectionContract`](https://getpromptscript.dev/api-reference/core/src/interfaces/SectionContract/index.md) \| `undefined`