# Function: createVersionCheck()

```ts
function createVersionCheck(config): (version) => Promise<GateResult>;
```

Defined in: [packages/core/src/validation/check-version.ts:13](https://github.com/leifriksheim/minca/blob/main/core/src/validation/check-version.ts#L13)

The checks a version passes before anyone asks whether it stands in a space:
its shape alone, its signature, then the note behind its key. Body shape is
not among them: whether a body fits can depend on which definition a node
has, and refusing on it would leave nodes that disagree forever.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `config` | [`CapabilityGateConfig`](https://minca.dev/api/core/interfaces/CapabilityGateConfig.md) |

## Returns

(`version`) => `Promise`\<`GateResult`\>
