Add test case for isolated declarations function expression issue

Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-07-25 14:08:19 +00:00
parent 8df2f7c170
commit 655637f611

View File

@ -0,0 +1,21 @@
// @isolatedDeclarations: true
// @declaration: true
declare function observer<T>(fn: T): T;
declare function action<T>(fn: T): T;
export const Component = observer(() => {
return "hello";
});
export const thing = action(function () {
return Component;
});
export const arrowWithType = observer((): string => {
return "typed";
});
export const functionWithType = action(function (): typeof Component {
return Component;
});