TypeScript¶
TypeScript provides the compile-time type layer shared by VCQA browser, Worker, SDK, CLI, GitHub Action, VS Code, and desktop stacks. This item records how VCQA checks TypeScript as stack glue; it is not a general TypeScript style guide.
Upstream references¶
- TSConfig Reference
- Strict type checking
- Module resolution
- Declaration emit
- TypeScript Handbook
- Modules reference
What upstream owns¶
- type system behavior and compiler diagnostics
- compiler option, module resolution, and emit semantics
- declaration generation and project-reference behavior
- JavaScript/TypeScript interop semantics
VCQA-owned rule surface¶
- TS-STRICT: stack-owned source uses strict checking unless the stack standard records a narrow generated-code or migration exception.
- TS-RUNTIME:
lib,types,module, andmoduleResolutionmatch the runtime boundary being reviewed: browser, Cloudflare Worker, Node CLI, SDK package, GitHub Action, VS Code, or Tauri shell. - TS-BOUNDARY: data crossing API, tool, env, storage, or SDK boundaries is not trusted merely because it has a TypeScript type; the relevant runtime schema item owns parsing.
- TS-EXPORT: SDKs and action packages produce declarations that match the public export map and do not expose private implementation paths.
- TS-EXCEPTION:
any,unknownnarrowing gaps,@ts-ignore, and@ts-expect-errorare findings when they appear on owned boundary code without a local reason.
Detection signals¶
typescriptdependencytsconfig.jsontsconfig.*.jsonvariants or project references*.tsor*.tsxsource filesdeclaration,emitDeclarationOnly,types, or packageexportsfields
Composed standards¶
- React SPA
- Cloudflare Pages Fullstack
- Cloudflare D1 App
- Cloudflare Worker MCP Server
- Node CLI Internal Tool
- TypeScript SDK
- GitHub Action Package
- VS Code Extension Package
- Tauri React Desktop
Combination-born examples¶
- TypeScript plus Zod creates a runtime boundary rule: external data is parsed before it becomes typed domain data.
- TypeScript plus SDK packaging requires declaration output and export map checks.
- TypeScript plus Workers requires runtime-compatible APIs, not Node-only assumptions.
- TypeScript plus GitHub Actions means action inputs and environment variables are stringly supplied and must be narrowed before side effects.