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.
// TS2305: Module "ai" has no exported member 'AssistantResponse'.
import { AssistantResponse } from "ai";// TS2724: Did you mean 'ToolExecutionOptions'?
import { ToolExecutionOption } from "ai";// TS2339: Property 'reasoningDetails' does not exist...
console.log(result.reasoningDetails);// TS2551: Did you mean 'pipeTextStreamToResponse'?
result.pipeDataStreamToResponse(res);// TS2353: Object literal may only specify known properties...
embed({ model, value: "hello", unrecognizedFlag: true });// TS2554: Expected 2 arguments, but got 3.
cosineSimilarity([1, 2], [3, 4], [5, 6]);.d.ts declarations.<YOUR_API_KEY> placeholders and ... elisions. If it isn't valid syntax, we skip it and count it in the final report tally.