[READ-ONLY] Mirror of https://github.com/bombshell-dev/docs. bomb.sh/docs
0

Configure Feed

Select the types of activity you want to include in your feed.

fix: install arktype for twoslash (#48)

* fix: adapt code example to pass twoslash

* revert: code example

* feat: update clack versions so code examples passes

authored by

Felix Schneider and committed by
GitHub
(May 29, 2026, 11:48 AM -0500) ccf726b4 cad1c216

+45 -14
+3 -2
package.json
··· 14 14 "dependencies": { 15 15 "@astrojs/starlight": "^0.37.1", 16 16 "@bomb.sh/args": "^0.3.1", 17 - "@clack/core": "^1.3.1", 18 - "@clack/prompts": "^1.4.0", 17 + "@clack/core": "^1.4.0", 18 + "@clack/prompts": "^1.5.0", 19 19 "@types/node": "^22.19.3", 20 20 "@webcontainer/api": "^1.6.1", 21 21 "@webcontainer/snapshot": "^0.1.0", 22 22 "@xterm/addon-fit": "^0.11.0", 23 23 "@xterm/addon-web-links": "^0.12.0", 24 24 "@xterm/xterm": "^6.0.0", 25 + "arktype": "^2.2.0", 25 26 "astro": "^5.16.6", 26 27 "expressive-code-twoslash": "^0.5.3", 27 28 "sharp": "^0.33.5",
+41 -10
pnpm-lock.yaml
··· 15 15 specifier: ^0.3.1 16 16 version: 0.3.1 17 17 '@clack/core': 18 - specifier: ^1.3.1 19 - version: 1.3.1 20 - '@clack/prompts': 21 18 specifier: ^1.4.0 22 19 version: 1.4.0 20 + '@clack/prompts': 21 + specifier: ^1.5.0 22 + version: 1.5.0 23 23 '@types/node': 24 24 specifier: ^22.19.3 25 25 version: 22.19.3 ··· 38 38 '@xterm/xterm': 39 39 specifier: ^6.0.0 40 40 version: 6.0.0 41 + arktype: 42 + specifier: ^2.2.0 43 + version: 2.2.0 41 44 astro: 42 45 specifier: ^5.16.6 43 46 version: 5.16.6(@types/node@22.19.3)(rollup@4.55.1)(typescript@5.8.2) ··· 69 72 70 73 packages: 71 74 75 + '@ark/schema@0.56.0': 76 + resolution: {integrity: sha512-ECg3hox/6Z/nLajxXqNhgPtNdHWC9zNsDyskwO28WinoFEnWow4IsERNz9AnXRhTZJnYIlAJ4uGn3nlLk65vZA==} 77 + 78 + '@ark/util@0.56.0': 79 + resolution: {integrity: sha512-BghfRC8b9pNs3vBoDJhcta0/c1J1rsoS1+HgVUreMFPdhz/CRAKReAu57YEllNaSy98rWAdY1gE+gFup7OXpgA==} 80 + 72 81 '@astrojs/compiler@2.13.0': 73 82 resolution: {integrity: sha512-mqVORhUJViA28fwHYaWmsXSzLO9osbdZ5ImUfxBarqsYdMlPbqAqGJCxsNzvppp1BEzc1mJNjOVvQqeDN8Vspw==} 74 83 ··· 128 137 resolution: {integrity: sha512-8XqW8xGn++Eqqbz3e9wKuK7mxryeRjs4LOHLxbh2lwKeSbuNR4NFifDZT4KzvjU6HMOPbiNTsWpniK5EJfTWkg==} 129 138 engines: {node: '>=18'} 130 139 131 - '@clack/core@1.3.1': 132 - resolution: {integrity: sha512-fT1qHVGAag4IEkrupZ6lRRbNCs1vS9P01KB/sG8zKgvUztbYtFBtQpjSITNwooDZ83tpsPzP0mRNs1/KVszCRA==} 140 + '@clack/core@1.4.0': 141 + resolution: {integrity: sha512-7Wctjq6f7c1CPz8sPpkwUnz8yRgVANkpNupb81q432FjcJg4l+Sw7XANdNSdWfAKq0IHI0JTcUeK5dxs/HrGPw==} 133 142 engines: {node: '>= 20.12.0'} 134 143 135 - '@clack/prompts@1.4.0': 136 - resolution: {integrity: sha512-S0My7XPGIgpRWMDG8uRqalbgT+a6FmCUdOW+HaIOVVpUPHOb7RrpvjTjiODadKp06fsrVDJZlIzc6yCTp4AnxA==} 144 + '@clack/prompts@1.5.0': 145 + resolution: {integrity: sha512-wKh+wTjmrUoUdkZg8KpJO5X+p9PWV+KE9mePseq9UYWkukgTKsGS47RRL2HstwVcvDQH+PenrPJWII8+MfiiyA==} 137 146 engines: {node: '>= 20.12.0'} 138 147 139 148 '@cloudflare/kv-asset-handler@0.4.2': ··· 1135 1144 resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==} 1136 1145 engines: {node: '>= 0.4'} 1137 1146 1147 + arkregex@0.0.5: 1148 + resolution: {integrity: sha512-ncYjBdLlh5/QnVsAA8De16Tc9EqmYM7y/WU9j+236KcyYNUXogpz3sC4ATIZYzzLxwI+0sEOaQLEmLmRleaEXw==} 1149 + 1150 + arktype@2.2.0: 1151 + resolution: {integrity: sha512-t54MZ7ti5BhOEvzEkgKnWvqj+UbDfWig+DHr5I34xatymPusKLS0lQpNJd8M6DzmIto2QGszHfNKoFIT8tMCZQ==} 1152 + 1138 1153 array-iterate@2.0.1: 1139 1154 resolution: {integrity: sha512-I1jXZMjAgCMmxT4qxXfPXa6SthSoE8h6gkSI9BGGNv8mP8G/v0blc+qFnZu6K42vTOiuME596QaLO0TP3Lk0xg==} 1140 1155 ··· 2430 2445 2431 2446 snapshots: 2432 2447 2448 + '@ark/schema@0.56.0': 2449 + dependencies: 2450 + '@ark/util': 0.56.0 2451 + 2452 + '@ark/util@0.56.0': {} 2453 + 2433 2454 '@astrojs/compiler@2.13.0': {} 2434 2455 2435 2456 '@astrojs/internal-helpers@0.7.5': {} ··· 2556 2577 dependencies: 2557 2578 fontkit: 2.0.4 2558 2579 2559 - '@clack/core@1.3.1': 2580 + '@clack/core@1.4.0': 2560 2581 dependencies: 2561 2582 fast-wrap-ansi: 0.2.0 2562 2583 sisteransi: 1.0.5 2563 2584 2564 - '@clack/prompts@1.4.0': 2585 + '@clack/prompts@1.5.0': 2565 2586 dependencies: 2566 - '@clack/core': 1.3.1 2587 + '@clack/core': 1.4.0 2567 2588 fast-string-width: 3.0.2 2568 2589 fast-wrap-ansi: 0.2.0 2569 2590 sisteransi: 1.0.5 ··· 3248 3269 argparse@2.0.1: {} 3249 3270 3250 3271 aria-query@5.3.2: {} 3272 + 3273 + arkregex@0.0.5: 3274 + dependencies: 3275 + '@ark/util': 0.56.0 3276 + 3277 + arktype@2.2.0: 3278 + dependencies: 3279 + '@ark/schema': 0.56.0 3280 + '@ark/util': 0.56.0 3281 + arkregex: 0.0.5 3251 3282 3252 3283 array-iterate@2.0.1: {} 3253 3284
+1 -2
src/content/docs/clack/guides/best-practices.mdx
··· 57 57 58 58 ```ts twoslash 59 59 import { text } from '@clack/prompts'; 60 - // @errors: 2322 61 60 import { type } from 'arktype'; 62 61 63 62 const name = await text({ 64 - message: 'Enter your name (letters only)', 63 + message: 'Enter your name (letters only)', 65 64 validate: type('string.alpha').describe('Name can only contain letters'), 66 65 }); 67 66 ```