Closed zxti closed 5 years ago
Thanks for creating a reproduction repo, I'm going to look into this
Reproduced with the following test case (in instrument.spec.ts):
it('should not instrument a function declaration that has no a body', () => {
// See issue #85 for details
const input = `function foo(n: number): void;`;
expect(instrument(input, 'test.ts')).toContain(
astPrettyPrint('function foo(n: number): void;'),
);
});
Fix released as typewiz 1.2.3
Fast work! Works perfectly now. Can't wait to get this going again. Thank you!
I've gotten a taste of typewiz by running some of my codebase in node, and it's awesome! But now when I turned to run it over the create-react-app-based codebase, I'm seeing errors when encountering exported function overloads, for some reason (which I didn't see occur in typewiz-node, oddly).
I've created a repro of this, which requires the following two repos:
To get started, clone both repos, then run:
When the dev server starts, it spits out the error:
Any ideas around this? I hope my creating these repos helps!