feat: express responses

This commit is contained in:
TresAbhi committed 2023-06-27 01:43:30 +00:00
1 parent 0f46f333b5
commit f2ae698438
45 files changed
+153 -93

No files matched your search

@@ -0,0 +1,11 @@
import { ResponderReturnable } from '../../server.js';
import jsxToSvg from '../ui/jsxToSvg.js';
export default async function normalizeResponderReturnable(
returnable: ResponderReturnable,
) {
const awaitedReturnable = await returnable;
const svg = await jsxToSvg(awaitedReturnable);
return svg;
}