Your docs still show
the old API.

Snippetcheck compiles every TypeScript sample in your documentation against the version you actually publish, and tells you which ones no longer work.

We run it against your public docs and email you the broken samples. No account, nothing to install.

What it checks

Removed Exports

// TS2305: Module "ai" has no exported member 'AssistantResponse'.
import { AssistantResponse } from "ai";

Renamed Exports

// TS2724: Did you mean 'ToolExecutionOptions'?
import { ToolExecutionOption } from "ai";

Removed Properties

// TS2339: Property 'reasoningDetails' does not exist...
console.log(result.reasoningDetails);

Renamed Properties

// TS2551: Did you mean 'pipeTextStreamToResponse'?
result.pipeDataStreamToResponse(res);

Unknown Options

// TS2353: Object literal may only specify known properties...
embed({ model, value: "hello", unrecognizedFlag: true });

Wrong Arity

// TS2554: Expected 2 arguments, but got 3.
cosineSimilarity([1, 2], [3, 4], [5, 6]);

What it will not tell you

Get your report