79551763

Date: 2025-04-03 00:20:42
Score: 0.5
Natty:
Report link

For anyone who comes across this, the file name should correspond to how you import the library. In my case, this seems to work regardless of the testfoo.d.ts file being located in the types directory:

// testfoo.d.ts   
declare module "@/public/assets/scripts/testfoo" {
  export interface ITest {
    disabled: boolean;
  }

  export class TestCl {
    constructor();
    go(): void;
  }
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: McCrockett