Skip to content

fix(app): add type declaration for local-file-path.impl.js#791

Merged
benjaminshafii merged 1 commit intodifferent-ai:devfrom
caoergou:fix/ts7016-clean
Mar 7, 2026
Merged

fix(app): add type declaration for local-file-path.impl.js#791
benjaminshafii merged 1 commit intodifferent-ai:devfrom
caoergou:fix/ts7016-clean

Conversation

@caoergou
Copy link
Contributor

@caoergou caoergou commented Mar 7, 2026

Summary

  • Add local-file-path.impl.d.ts type declaration file to resolve TS7016 error
  • The error was caused by importing a .js file without type declarations

Problem

TypeScript compilation failed with:

src/app/lib/local-file-path.ts(1,70): error TS7016: Could not find a declaration file for module './local-file-path.impl.js'.

Solution

Added a minimal .d.ts file declaring the function signature instead of modifying tsconfig.json allowJs setting. This is the least invasive approach.

Test plan

  • pnpm typecheck passes with no errors

Add a .d.ts file to resolve TS7016 error when importing a JavaScript
module without type declarations. This is a minimal fix that doesn't
require modifying tsconfig.json settings.
@vercel
Copy link

vercel bot commented Mar 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-software Ready Ready Preview, Comment Mar 7, 2026 9:56am

@vercel
Copy link

vercel bot commented Mar 7, 2026

@caoergou is attempting to deploy a commit to the 0 Finance Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 7, 2026

The following comment was made by an LLM, it may be inaccurate:

Copy link
Member

@benjaminshafii benjaminshafii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed locally: change is limited to a single .d.ts declaration, typecheck passes, and local file path script tests pass.

@benjaminshafii benjaminshafii merged commit 961b092 into different-ai:dev Mar 7, 2026
5 of 7 checks passed
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