docs: Initial documentation structure and baseline content#249
docs: Initial documentation structure and baseline content#249dreyfus92 wants to merge 6 commits intobombshell-dev:mainfrom
Conversation
|
|
Open in Stackblitz • @example/basic • @example/changesets commit: |
| const name = await text({ | ||
| message: 'What is your name?', | ||
| placeholder: 'John Doe', | ||
| }) as string; |
There was a problem hiding this comment.
is it not a string by default? what does text resolve to?
There was a problem hiding this comment.
it is, but if you use isCancel, it should narrow to string i think
There was a problem hiding this comment.
i had to force the type cast, it wasn't able to infer it for some reason 😭
| return { | ||
| port: Number(port), | ||
| host, | ||
| mode: String(mode) as 'development' | 'production', |
There was a problem hiding this comment.
this should actually be inferred. i think select resolves to symbol | 'development' | 'production' in this case
|
looks good to me there's a few places where you cast in examples and i suspect you don't need to 👀 but other than that this is great |
|
closing in favor of moving the docs to it's own repo 😁 |
this is an attempt to work on the docs for clack 🫡