diff --git a/src/content/docs/clack/guides/best-practices.mdx b/src/content/docs/clack/guides/best-practices.mdx index d1c64fe..4e2188b 100644 --- a/src/content/docs/clack/guides/best-practices.mdx +++ b/src/content/docs/clack/guides/best-practices.mdx @@ -92,7 +92,6 @@ Async schemas work the same way (v1.8.0): a schema whose validation returns a `P Use clear and consistent messaging across your prompts: ```ts twoslash -// @errors: 2322 import { select, isCancel } from '@clack/prompts'; // Good @@ -157,7 +156,6 @@ if (projectType === 'web') { Provide sensible defaults when appropriate: ```ts twoslash -// @errors: 2353 import { text, select, isCancel } from '@clack/prompts'; // Define types for better type safety @@ -341,7 +339,6 @@ const serverPort = await text({ Use conditional logic to show relevant prompts: ```ts twoslash -// @errors: 2339 import { text, select, isCancel } from '@clack/prompts'; interface DatabaseConfig { diff --git a/src/content/docs/clack/guides/examples.mdx b/src/content/docs/clack/guides/examples.mdx index 7123ebc..34a437b 100644 --- a/src/content/docs/clack/guides/examples.mdx +++ b/src/content/docs/clack/guides/examples.mdx @@ -956,7 +956,6 @@ async function longRunningTask() { Organize complex operations into groups: ```ts twoslash -// @errors: 2345 import { taskLog, intro, outro } from '@clack/prompts'; async function buildProject() { diff --git a/src/content/docs/clack/packages/core.mdx b/src/content/docs/clack/packages/core.mdx index f559e9a..43cd09f 100644 --- a/src/content/docs/clack/packages/core.mdx +++ b/src/content/docs/clack/packages/core.mdx @@ -131,7 +131,6 @@ interface Prompt { The `Prompt` interface provides several events that can be handled: ```ts twoslash -// @errors: 2304 2314 2345 7006 2353 2459 // @noErrors import { Prompt } from '@clack/core'; @@ -281,7 +280,6 @@ The `withGuide` setting controls the display of Clack's signature border lines. You can create custom prompts by extending the base `Prompt` class: ```ts twoslash -// @errors: 2339 import { Prompt } from '@clack/core'; // Example of extending the base Prompt class diff --git a/src/content/docs/clack/packages/prompts.mdx b/src/content/docs/clack/packages/prompts.mdx index 4f8793b..209adec 100644 --- a/src/content/docs/clack/packages/prompts.mdx +++ b/src/content/docs/clack/packages/prompts.mdx @@ -111,7 +111,6 @@ const name = await text({ The text prompt accepts a single line of text. ```ts twoslash -// @errors: 2339 18048 import { text } from '@clack/prompts'; const name = await text({ @@ -604,7 +603,6 @@ Options: The `groupMultiselect` prompt extends the [`multiselect`](#multiple-values) prompt to allow arranging distinct Multi-Selects, whilst keeping all of them interactive. ```ts twoslash -// @errors: 2353 import { groupMultiselect } from '@clack/prompts'; const projectOptions = await groupMultiselect({ @@ -1019,7 +1017,6 @@ note( The second parameter (the title) is optional. You can also provide a format function to customize how each line is displayed: ```ts twoslash -// @errors: 2345 7006 import { note } from '@clack/prompts'; note( @@ -1079,7 +1076,6 @@ Options: The `taskLog` prompt provides a way to display log output that is cleared on success. This is useful for showing progress or status updates that should be removed once the task is complete. ```ts twoslash -// @errors: 2345 import { taskLog } from '@clack/prompts'; const log = taskLog({ @@ -1114,7 +1110,6 @@ Options: Task logs support named groups, which allow you to organize logs into separate sections with their own headers and completion states: ```ts twoslash -// @errors: 2345 import { taskLog } from '@clack/prompts'; const log = taskLog({