mirror of
https://github.com/ritz078/transform.git
synced 2026-12-04 05:44:30 +03:00
* feat(ts-to-flow): add server side converter for typescript to flow * fixes
This commit is contained in:
1 parent
7456d6e7bc
commit
d28b270ed9
11 files changed
+272
-85
No files matched your search
@@ -0,0 +1,8 @@
|
||||
export default async function request(url: string, data: any) {
|
||||
const res = await fetch(url, {
|
||||
method: "POST",
|
||||
body: typeof data === "object" ? JSON.stringify(data) : data
|
||||
});
|
||||
|
||||
return await res.text();
|
||||
}
|
||||
+7
-1
@@ -264,9 +264,15 @@ export const categorizedRoutes = [
|
||||
iconName: "",
|
||||
content: [
|
||||
{
|
||||
label: "Flow to Typescript",
|
||||
label: "Flow to TypeScript",
|
||||
path: "/flow-to-typescript"
|
||||
},
|
||||
{
|
||||
label: "TypeScript to Flow",
|
||||
path: "/typescript-to-flow",
|
||||
packageName: "flowgen",
|
||||
packageUrl: "https://github.com/joarwilk/flowgen"
|
||||
},
|
||||
{
|
||||
label: "XML to JSON",
|
||||
path: "/xml-to-json",
|
||||
|
||||
Reference in new issue
Block a user