docs: add tty docs section with API reference - #60
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bombshell-docs | 27a4328 | Commit Preview URL Branch Preview URL |
Jul 09 2026, 03:40 AM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bombsh-docs-router | 27a4328 | Commit Preview URL Branch Preview URL |
Jul 09 2026, 03:38 AM |
Signed-off-by: paul valladares <85648028+dreyfus92@users.noreply.github.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
cowboyd
left a comment
There was a problem hiding this comment.
This talks about the different apis, but I think we should also invest in explaining the archictecture as laid out in the README https://github.com/bombshell-dev/tty/blob/main/README.md which addresses the why the apis are laid out the way they are.
| description: Terminal input parser API for @bomb.sh/tty | ||
| --- | ||
|
|
||
| import { Aside } from '@astrojs/starlight/components'; |
There was a problem hiding this comment.
Is this correct, or an artifact of using starlight as a basis
There was a problem hiding this comment.
yeah this is correct, the docs site runs on starlight so Aside is a component from their internal lib, it's what renders the callout boxes, not leftover scaffolding. there's also the :::note directive syntax that doesn't need the import if we'd rather keep pages import-free.
|
|
||
| Creates an input parser instance. | ||
|
|
||
| ```ts twoslash |
There was a problem hiding this comment.
ts is just syntax highlighting, twoslash runs the snippet thru the actual ts compiler at build time via the twoslash-ec plugin for expressive code so you get editor-style hover info in the rendered docs, and the build fails if an example stops typechecking. basically makes every code block a verified example, so when you hover you see the type definitions.
|
thanks for the review @cowboyd
i will try to explain the architecture within the |
What does this PR do?
adds tty docs section
Type of change
AI-generated code disclosure