UNPKG

@anthropic-ai/sdk

Version:
22 lines (21 loc) • 799 B
{ // this config is included in the published src directory to prevent TS errors // from appearing when users go to source, and VSCode opens the source .ts file // via declaration maps "include": ["index.ts"], "compilerOptions": { "target": "es2020", "lib": ["es2022", "DOM", "DOM.Iterable"], // "esnext" and not the "preserve" our own tsconfig.json uses: an SDK user's editor reads this // file with whatever TypeScript it has, and "preserve" only exists from TypeScript 5.4 "module": "esnext", "moduleResolution": "bundler", "esModuleInterop": true, "strict": true, "exactOptionalPropertyTypes": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, "skipLibCheck": true } }