Skip to content

fix(types): add declaration file for windows-hidden-console - #298

Merged
yaojin3616 merged 1 commit into
mainfrom
fix/windows-hidden-console-types
Sep 4, 2026
Merged

fix(types): add declaration file for windows-hidden-console#298
yaojin3616 merged 1 commit into
mainfrom
fix/windows-hidden-console-types

Conversation

@yaojin3616

Copy link
Copy Markdown
Contributor

Summary

PR #289 added build/windows-hidden-console.mjs and its unit test test/windows-hidden-console.test.ts. However, it missed the TypeScript declaration file build/windows-hidden-console.d.mts (matching build/windows-child-process-hide.d.mts), causing npm run typecheck to fail with TS7016:

test/windows-hidden-console.test.ts(2,37): error TS7016: Could not find a declaration file for module '../build/windows-hidden-console.mjs'.

Fix

Add build/windows-hidden-console.d.mts with typings for createHiddenConsole.

Verification

  • npm run typecheck: PASS
  • npx vitest run test/windows-hidden-console.test.ts: PASS

@yaojin3616
yaojin3616 merged commit d8dc28b into main Sep 4, 2026
2 of 3 checks passed
@yaojin3616
yaojin3616 deleted the fix/windows-hidden-console-types branch September 4, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant