Skip to content

Commit 385688a

Browse files
committed
add types to docs
1 parent 7078ac0 commit 385688a

4 files changed

Lines changed: 24 additions & 2 deletions

File tree

.github/prompts/genaiscript.prompt.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ or answer questions about GenAIScript.
66
## Reference
77

88
- [GenAIScript docs](../../.genaiscript/docs/llms-full.txt)
9-
- [GenAIScript ambient type definitions](../../.genaiscript/genaiscript.d.ts)
109

1110
## Guidance for Code Generation
1211

docs/src/content/docs/reference/scripts/ast-grep.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: ast-grep
33
description: Search for patterns in the AST of a script
4+
sidebar:
5+
order: 20
46
---
57

68
[ast-grep](https://ast-grep.github.io/) is a fast and polyglot tool for code structural search, lint, rewriting at large scale.

docs/src/content/docs/reference/scripts/cancel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Cancel
3-
siderbar:
3+
sidebar:
44
order: 15
55
description: Learn how to immediately stop script execution with the cancel function in your automation scripts.
66
keywords: cancel function, script termination, stop execution, automation, script control
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Types
3+
description: TypeScript Type Definition File
4+
sidebar:
5+
order: 100000
6+
keywords:
7+
- TypeScript
8+
- Type Definition
9+
- Types
10+
- TypeScript Types
11+
- Type Definitions
12+
- TypeScript Type Definitions
13+
---
14+
15+
import { Code } from "@astrojs/starlight/components"
16+
import src from "../../../../../../genaisrc/genaiscript.d.ts?raw"
17+
18+
The `genaiscript.d.ts` file contains the TypeScript ambient type definition
19+
for the GenAIScript runtime.
20+
21+
<Code title="genaiscript.d.ts" code={src} wrap={true} lang="typescript" />

0 commit comments

Comments
 (0)