Skip to content

Conversation

@mchao123
Copy link

@mchao123 mchao123 commented Oct 20, 2025

Description

Fix vue-ts renderer has Node runtime types bug.

The code at the renderer location no longer has Node.js type definitions; the two are now independent. The type for setTimeout has reverted to number.

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

Before:

function setTimeout<[]>(callback: () => void, delay?: number | undefined): NodeJS.Timeout

After:

function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number

让vscode编辑器折叠配置
改为vue的前端配置
Fix node reference in electron.d.ts to prevent frontend errors.
@alex8088
Copy link
Owner

Use window.setTimeout instead of setTimeout in the renderer

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.

2 participants