# ContractCtor

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

[**@midnight-ntwrk/compact-runtime v0.21.0**](https://docs.midnight.network/api-reference/compact-runtime.md)

***

[@midnight-ntwrk/compact-runtime](https://docs.midnight.network/api-reference/compact-runtime/globals.md) / ContractCtor

# Type Alias: ContractCtor()

```
type ContractCtor = (witnesses) => ContractInstance;
```

A generated module's `Contract` constructor. `witnesses` is `any` because a generated `Contract` declares `constructor(witnesses: W)`, and an index signature doesn't satisfy a declared property, so anything narrower makes every generated module unassignable.

## Parameters[​](#parameters "Direct link to Parameters")

### witnesses[​](#witnesses "Direct link to witnesses")

`any`

## Returns[​](#returns "Direct link to Returns")

[`ContractInstance`](https://docs.midnight.network/api-reference/compact-runtime/type-aliases/ContractInstance.md)
