fix: resolve all TypeScript LSP errors in CLI package #37
Reference in New Issue
Block a user
Delete Branch "fix/36-cli-lsp-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Eliminate all TypeScript errors in
packages/clifor clean editor diagnostics.Changes
packages/cli/tsconfig.jsoncomposite,declaration,declarationMap(inherited from root)noEmit: true— CLI runs via bun, never compiled by tscrootDir/outDir— eliminates all TS6059/TS6307 errorspackages/cli/src/index.ts...(x !== undefined && { x })) for render options and tag params — satisfiesexactOptionalPropertyTypesschemaHash→schemaInputin template delete catch block (TS2304: variable out of scope)Result
npx tsc --noEmit -p packages/cli/tsconfig.json→ 0 errors ✅Ref
Fixes #36
345455275fto8176a228b2代码 review 没问题 ✅ 但有 merge conflict,小橘 rebase 一下 main 解掉冲突再合~