Skip to content

build: resolve ts-check errors in build script#201

Open
ArtemZhyto wants to merge 1 commit intoneutralinojs:mainfrom
ArtemZhyto:fix/build-script-ts-check
Open

build: resolve ts-check errors in build script#201
ArtemZhyto wants to merge 1 commit intoneutralinojs:mainfrom
ArtemZhyto:fix/build-script-ts-check

Conversation

@ArtemZhyto
Copy link
Copy Markdown

@ArtemZhyto ArtemZhyto commented Feb 24, 2026

Summary

This PR improves the developer experience (DX) by resolving all TypeScript/Linter errors in build.mjs using JSDoc annotations and type narrowing.

Changes

  • Added JSDoc @param and @type definitions for functions and variables.
  • Implemented a null-check in resetCommitHash to prevent passing null to patchInitFile.
  • Resolved implicit any errors without removing the @ts-check directive.

Related Issue

Closes #200

Verification

  • npm run build runs successfully.
  • No red warnings/errors in VS Code for build.mjs.

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.

Improve type safety and fix linter errors in build.mjs

1 participant