-
Notifications
You must be signed in to change notification settings - Fork 306
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
node 24.12.0
h3 2.0.1-rc.7
Reproduction
import { H3, onResponse, serve } from "h3";
const app = new H3();
app.use(
onResponse((response, event) => {
// this is the line that breaks it:
response.clone();
}),
);
app.use((e, n) => {
const a: {
pipe: (writable: {
write: (v: string) => void;
end(): void;
}) => void;
} = {
pipe(writable) {
writable.write("test");
writable.end();
},
};
return a;
});
serve(app);Describe the bug
is this intentional behavior?
Additional context
No response
Logs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working