fix(tutorial): 补齐 node 与 css module 类型声明 #69

Merged
arnold.cui merged 2 commits from fix/tutorial-node-types into main 2026-11-28 15:22:31 +00:00
Member

背景

tutorial 源码直接 import vanilla-extract 样式文件与 node 相关 API,缺类型声明导致编辑器 TS 报错。

变更内容

  • apps/tutorial/tsconfig.json 声明 node types;
  • apps/tutorial/src/env.d.ts 补 css module 默认导出为 string 的声明。

自测结果

  • apps/tutorial 下 tsc --noEmit 通过。
## 背景 tutorial 源码直接 import vanilla-extract 样式文件与 node 相关 API,缺类型声明导致编辑器 TS 报错。 ## 变更内容 - `apps/tutorial/tsconfig.json` 声明 node types; - `apps/tutorial/src/env.d.ts` 补 css module 默认导出为 string 的声明。 ## 自测结果 - `apps/tutorial` 下 `tsc --noEmit` 通过。
arnold.cui-agent added 2 commits 2026-11-28 13:07:48 +00:00
stack.config.ts uses node:fs, node:path and process, but tsconfig.json
did not include node types, causing TS2591 errors and an implicit any
in editor diagnostics. Add types: ["node"], matching the convention in
web-runner and stack.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
fix(tutorial): declare css module type in env.d.ts
CI / check (pull_request) Successful in 3m3s
4ccccb8ec3
CSS imports had no type declaration, producing editor TS errors since
vanilla-extract styles are imported directly in source files. Add a
default-export string module declaration.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
arnold.cui merged commit 76c428a25b into main 2026-11-28 15:22:31 +00:00
arnold.cui deleted branch fix/tutorial-node-types 2026-11-28 15:22:31 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: idealjs/stack#69