---
jsApi: true
title: "[F] parse"

---
```ts
parse(code, options): TypeSpecScriptNode
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `code` | `string` \| [`SourceFile`](../interfaces/SourceFile.md) |
| `options` | [`ParseOptions`](../interfaces/ParseOptions.md) |

## Returns

[`TypeSpecScriptNode`](../interfaces/TypeSpecScriptNode.md)
