# getHighestKnownSyntaxVersion()

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

***

# Function: getHighestKnownSyntaxVersion()

> **getHighestKnownSyntaxVersion**(): `string`

Defined in: [core/src/syntax-versions.ts:214](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/core/src/syntax-versions.ts#L214)

Get the highest syntax version in the registry, which can be above the
default version that new files are written with.

## Returns

`string`